@if (count($invoices) > 0)
{!! Form::label('export_method', 'Opciones de exportación', ['class' => 'control-label']) !!}
{!! Form::select('export_method', config('constants.exportMethods.options'), null, ['class' => 'form-control', 'id' => 'export-method']) !!}
{!! Form::label('export_date', 'Fecha de exportación', ['class' => 'control-label']) !!}
{!! Form::date('export_date', old('export_date', now()), ['class' => 'form-control underlined', 'id' => 'export-date']) !!}
@endif
| # Factura |
Paciente |
Autorización |
Monto |
Total |
@if (count($invoices) < 1)
|
Sin resultados que mostrar
|
@else
@foreach ($invoices as $invoice)
@php
$routes = '';
if (!$invoice->multiple) {
$routes = ''.$invoice->authorization_code.'';
} else {
$codesArray = json_decode($invoice->multiple_codes, true);
foreach ($codesArray as $key => $code) {
$routes .= ''.$code.'';
if (count($codesArray) > $key - 1) {
$routes .= '
';
}
}
}
$patient = $invoice->getPatient();
@endphp
|
{!! $invoice->format_number !!}
{!! ' - ' . optional($invoice->eps)->alias !!}
Fecha de creación: {!! $invoice->created_at->format('d/m/Y') !!}
|
@if ($patient)
{!! $patient->full_name !!}
@else
--
@endif
|
{!! $routes !!} |
$ {!! !$invoice->multiple ? number_format($invoice->total, 2, ',', '.') : join(' $ ',
$invoice->multiple_totals_formated) !!} |
$ {!! number_format($invoice->calculateTotal(), 2, ',', '.') !!}
|
@endforeach
@endif
@if (count($invoices) > 0)
{{ $invoices->appends([
'initial_number' => request()->get('initial_number'),
'final_number' => request()->get('final_number'),
'initial_date' => request()->get('initial_date'),
'final_date' => request()->get('final_date'),
'selection' => $oldSelection,
'except' => request()->get('except'),
'eps_id' => request()->get('eps_id'),
'company_id' => request()->get('company_id'),
])->links() }}
@endif