@extends('admin.layouts.adminpanel') @section('page_header') @php $doc_type = $type == 'invoices' ? 'Invoice' : 'Credit Note'; $page_title = empty($invoice->id) ? __('Create new ' . $doc_type) : __('Edit ' . $doc_type); @endphp @include('admin.partials.page_header') @endsection @section('content')
(*) Datos obligatorios.
@if ($type == 'invoices')
id) && $invoice->remind_until_paid ? 'checked' : '' }}>
@endif
@if ($type == 'invoices') @else @endif
@if ($type == 'invoices')
@endif
id) || $invoice->moneda == 'Pesos') disabled @endif>
@can('consultar facturas')
@can('crear facturas') {{ __('New Item') }} @endcan
@php $concepts = $invoice->concepts->isNotEmpty() ? $invoice->concepts : $invoice->getTemporaryConcepts(); @endphp @if ($concepts->isNotEmpty()) @foreach ($concepts as $concept) @endforeach @endif isNotEmpty()) style="display:none;" @endif>
{{ __('Quantity') }} {{ __('Description') }} {{ __('Unit') }} {{ __('Selling Price') }} {{ __('Total') }} {{ __('Actions') }}
{{ $concept->cantidad ?? $concept['cantidad'] }} {!! $concept->descripcion ?? $concept['descripcion'] !!} {{ is_object($concept) ? $concept->clave_unidad . ' - ' . $concept->unidad : $concept['clave_unidad'] . ' - ' . $concept['unidad'] }} ${{ number_format($concept->valor_unitario ?? $concept['valor_unitario'], 2) }} ${{ number_format($concept->importe ?? $concept['importe'], 2) }} @can('editar facturas') @endcan @can('borrar facturas') @endcan
{{ __('No items added') }}
@endcan
{{-- Right panel --}}
{{-- controls --}}
id) && $iva_switch_default) || $invoice->iva_pct > 0 ? 'checked' : '' }}>
id) && $invoice->retiene_iva_pct > 0 ? 'checked' : '' }}>
retiene_isr_pct > 0 ? 'checked' : '' }}>
discount_pct > 0 ? 'checked' : '' }}>



{{-- buttons --}}
@endsection