| Factura a: |
{{ $data->user?->name ?: 'no definido' }} |
|
{{ $data->user->address ? $data->user->address ?? 'no definido' : '' }} |
|
{{ $data->user->phone }} |
|
Factura:
|
CF{{ $data->id }}
|
Fecha de factura:
|
{{ $data->created_at->format('d-m-Y') }}
|
|
|
@if ($data->products->count() > 0)
| Producto |
| Cantidad |
Precio |
IVA |
Importe |
|
@foreach ($data->products as $item)
@php
$total += $item->price * $item->pivot?->count;
@endphp
| {{ $item->name }} |
| {{ $item->pivot?->count ?? 0 }} |
@money($item->price) |
21% |
@money($item->price * $item->pivot?->count) |
|
@endforeach
|
@endif
@if ($data->attachments->count() > 0)
| Documento |
| Pág. |
Diap. x pág. |
Color |
2 Cara |
|
@foreach ($data->attachments as $item)
| {{ $item->name_doc }}.{{ $item->extension_doc }}
|
| {{ $item->number_pages ?? 0 }} |
{{ $item->pagesByDiapo ?? 2}}
|
{{ $item->color ? 'sí' : 'no' }} |
{{ $item->double_sided ? 'sí' : 'no' }} |
|
@endforeach
|
@endif
|
| Subtotal |
@money($total - $total * 0.21) |
| IVA (21%) |
@money($total * 0.21) |
|
Total |
@money($total) |
|