@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 {{--{{ $tittle }}--}} {{----}}
CONSTANCIA DE ENTREGA DE PRODUCTOS

{{$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 }}


Por medio de la presente, se deja constancia de la entrega de los siguiente productos
@if ($document->description) @endif
Descripción: {{ $document->description }}
@if ($document->guides)
{{--Guías:--}} @foreach($document->guides as $guide) @if(isset($guide->document_type_description)) @else @endif @endforeach
{{ $guide->document_type_description }}{{ $guide->document_type_id }}: {{ $guide->number }}
@endif @php $sum_total = 0; @endphp @foreach($document->items as $key => $row) @php $sum_total += $row->unit_price*($row->quantity_delivered); @endphp @endforeach
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_delivered, 0) }} {{ number_format($row->unit_price, 2) }} {{ number_format($row->unit_price*$row->quantity_delivered, 2) }}
TOTAL GENERAL {{ $document->currency_type->symbol }} {{ number_format($sum_total,2) }}