@php $establishment = $document->establishment; $configuration = \App\Models\Tenant\Configuration::first(); $configurations = \App\Models\Tenant\Configuration::first(); $company_name = $company->name; $company_owner = null; if ($configurations->trade_name_pdf) { $company_name = $company->trade_name; $company_owner = $company->name; } $establishment__ = \App\Models\Tenant\Establishment::find($document->establishment_id); $logo = $establishment__->logo ?? $company->logo; $minedu = "storage/uploads/logos/logo_midis.jpg"; if ($logo === null && !file_exists(public_path("$logo}"))) { $logo = "{$company->logo}"; } if ($logo) { $logo = "storage/uploads/logos/{$logo}"; $logo = str_replace("storage/uploads/logos/storage/uploads/logos/", "storage/uploads/logos/", $logo); } $customer = $document->customer; //$path_style = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'style.css'); $accounts = \App\Models\Tenant\BankAccount::all(); $tittle = $document->prefix.'-'.str_pad($document->id, 8, '0', STR_PAD_LEFT); $members = \Modules\Sale\Models\CommitteeMember::where('management_committee_id', $document->adjudication->management_committee_id)->get(); @endphp
{{--| {{$company_name}} |
|
| RUC Nº {{$company->number }} | |
| DIRECCIÓN: {{$establishment->address}} | |
| CELULAR |
| DATOS DEL CLIENTE | |
| CUI DEL CG | {{ $document->adjudication->cui_of_mc}} |
| CÓMITE DE GESTIÓN | {{ $document->adjudication->management_committee }} |
| DIRECCIÓN: | {{ $document->adjudication->address_of_mc }} |
| Descripción: | {{ $document->description }} |
| {{ $guide->document_type_description }} | @else{{ $guide->document_type_id }} | @endif: | {{ $guide->number }} |
| Nº | DESCRIPCIÓN BIEN Y/O SERVICIO | Unidad de medida | Cantidad | Precio Unitario | Precio total (S/) |
|---|---|---|---|---|---|
| {{$key+1}} |
@if($row->name_product_pdf)
{!!$row->name_product_pdf!!}
@else
{!!$row->item->description!!}
@endif
@if($row->attributes)
@foreach($row->attributes as $attr)
{!! $attr->description !!} : {{ $attr->value }} @endforeach @endif @if($row->discounts) @foreach($row->discounts as $dtos) {{ $dtos->factor * 100 }}% {{$dtos->description }} @endforeach @endif @if($row->item->is_set == 1) @inject('itemSet', 'App\Services\ItemSetService') {{join( "-", $itemSet->getItemsSet($row->item_id) )}} @endif |
{{ symbol_or_code($row->item->unit_type_id) }} | {{ number_format($row->quantity - $row->quantity_delivered, 0) }} | {{ number_format($row->unit_price, 2) }} | {{ number_format($row->unit_price*($row->quantity - $row->quantity_delivered), 2) }} | @php $sum_total += $row->unit_price*($row->quantity - $row->quantity_delivered); @endphp
| TOTAL GENERAL | {{ $document->currency_type->symbol }} {{ number_format($sum_total,2) }} | ||||