{{ $data->company_name }}
@if(!$data->general_report) @endif
@if( trim($data->company_logo) !== '' ) @endif @if( trim($data->sponsor_logo_1) !== '' ) @endif @if( trim($data->sponsor_logo_3) !== '' ) @endif @if(isset($data->tdf)) {{ __('invoices.cfdi_tipo_'.$data->tdf['TipoDeComprobante']) }} @else {{ __('consignment-notes.consignment-notes') }} @endif
{{$data->folio}}
{{ $data->contributor->name }}
RFC {{ $data->contributor->rfc }}
{{ $data->contributor->street }}
@if( TRIM($data->contributor->street2) != "" ) {{ $data->contributor->street2 }}
@endif {{ $data->contributor->city . " " . $data->contributor->state . " " . $data->country}}
@if( trim($data->contributor->zipcode) != "") {{ " CP" . " " . $data->contributor->zipcode }} @endif @if( trim($data->contributor->phone) != "") {{ " ".$data->contributor->phone }} @endif
{{ __('invoices.certification_date').":" }} {{$data->tdf['FechaTimbrado'] ?? ''}}
{{ __('invoices.certificate').":" }}
{{$data->tdf['NoCertificado'] ?? ''}}

{{ __('invoices.fiscal_folio').":" }}
{{$data->tdf['UUID'] ?? ''}}

{{ __('invoices.certificate_sat').":" }}
{{$data->tdf['NoCertificado'] ?? ''}}
{{ __('invoices.date').":" }} {{ $data->date }}
{{ __('invoices.customer').":" }} {{ $data->customer_name }}
{{ __('customers.taxid').":" }} {{ $data->customer_rfc }}
{{ __('customers.address').":" }} {{$data->customer_address}}
{{ __('customers.city').":" }} {{ $data->customer_city }}
{{ __('customers.state').":" }}{{ $data->customer_state }}

{{ __('invoices.payment_data').":" }}

{{ __('invoices.voucher_type').":" }} {{__('consignment-notes.consignment-notes')}}
{{ __('invoices.cfdi_uso').":" }} {{ $data->cfdi_uso }}
{{ __('invoices.payway').":" }} {{ $data->payment_way }}
{{ __('invoices.paymethod').":" }} {{ $data->payment_method }}
@if($data->petition != '') @endif @if(isset($data->tdf)) @endif
{{ __('invoices.pay_conditions').":" }} {{ $data->condition_pay }} {{ __('invoices.payment_expiration').":" }} {{ $data->expiration_date != '31-12-1969' ? $data->expiration_date : '' }}
{{ __('invoices.purchase_order').":" }} {{ $data->purchase_order }} {{ __('invoices.quote_number').":" }} {{ $data->quote_id }}
{{ __('invoices.petition').":" }} {{ $data->petition }}
{{ __('invoices.tipo_rela').":" }} {{ array_key_first($data->tdf['CfdiRelacionados']) }} {{ __('invoices.tipo_rela_uuid').":" }} @foreach($data->tdf['CfdiRelacionados'] as $rela => $UUIDs) @foreach($UUIDs as $UUID)

{{$UUID}}

@endforeach @endforeach
{{ __('invoices.product_description')}}
{{ __('invoices.QUANTITY') }} {{ __('invoices.UNITY') }} {{ __('invoices.UNITY_CODE') }} {{ __('invoices.PART_NUMBER') }} {{ __('invoices.SAT_CODE') }} {{ __('invoices.CONCEPT') }} {{ __('invoices.UNIT_PRICE') }} {{ __('invoices.TOTAL') }}
@foreach($details as $nKey => $detail) @if($countEmptyRows == 1) @endif @endforeach @if($countEmptyRows != 1) @for ($i = 0; $i < (20 - $countEmptyRows); $i++) @endfor @endif
{{ $detail->quantity }} {{ $detail->unity_name }} {{ $detail->unity }} {{ $detail->product_id }} {{ $detail->tax_code }} {{ $detail->product_name }} {{ "$".number_format($detail->sales_price,2,".",",") }} {{ "$".number_format($detail->amount,2,".",",") }}
@php echo $detail->description @endphp
{{ __('invoices.TOTAL_LETTER').":" }} {{ $data->total_letter.' '.$data->total_letter_decimal }} {{ __('invoices.SUBTOTAL').":" }} {{ $data->subtotal." ".$data->currency }}
{{ __('invoices.TAX').' '.$data->tax_perc.":" }} {{ $data->tax." ".$data->currency }}
{{ __('invoices.OBSERVATIONS').":" }} {{ $data->observations }} {{ __('invoices.TOTAL').":" }} {{ $data->total." ".$data->currency }}
{{ __('consignment-notes.consignment-notes') }}
{{ __('consignment-notes.version').":" }} {{ __('consignment-notes.international').":" }} {{ __('consignment-notes.distance').":" }} {{ __('consignment-notes.weightUnity').":" }} {{ __('consignment-notes.merchandiseWeight').":" }} {{ __('consignment-notes.merchandiseNumber').":" }}
2.0 No {{ $data->consignment['distance'] }} KM {{ $data->consignment['weight_unity'] }} {{ $data->consignment['weight'] }} KG {{ $data->consignment['merchandise_amount'] }}
{{ __('consignment-notes.locations') }}
{{ __('consignment-notes.locationId').":" }} {{ __('consignment-notes.locationType').":" }} {{ __('consignment-notes.locationRfc').":" }} {{ __('consignment-notes.locationDate').":" }} {{ __('consignment-notes.locationL').":" }}
{{ $data->consignment['origin_id'] }} {{ strtoupper(__('consignment-notes.origin')) }} {{ $data->consignment['origin_rfc'] }} {{ date('d-m-Y', strtotime($data->consignment['origin_date'])).' '.date('H:i:s', strtotime($data->consignment['origin_time']))}} {{ $data->consignment['origin_street'].' '.$data->consignment['origin_number'].', '.$data->consignment['origin_town'].', '.$data->consignment['origin_location'].', '.$data->consignment['origin_state'].', '.$data->consignment['origin_country'] }}
{{ $data->consignment['destination_id'] }} {{ strtoupper(__('consignment-notes.destination')) }} {{ $data->consignment['destination_rfc'] }} {{ date('d-m-Y', strtotime($data->consignment['destination_date'])).' '.date('H:i:s', strtotime($data->consignment['destination_time']))}} {{ $data->consignment['destination_street'].' '.$data->consignment['destination_number'].', '.$data->consignment['destination_town'].', '.$data->consignment['destination_location'].', '.$data->consignment['destination_state'].', '.$data->consignment['destination_country'] }}
{{ __('consignment-notes.merchandise') }}
@foreach($data->consignment['merchandises'] as $item) @endforeach
{{ __('consignment-notes.prodservkey').":" }} {{ __('consignment-notes.description').":" }} {{ __('consignment-notes.amount').":" }} {{ __('consignment-notes.unityKey').":" }} {{ __('consignment-notes.weight').":" }} {{ __('consignment-notes.dangerousMaterial').":" }}
{{ $item->transport_property }} {{ $item->description }} {{ $item->amount }} {{ $item->weight_unity }} {{ $item->weight }} KG {{ $item->dangerous_material ? 'Si' : 'No' }}
{{ __('consignment-notes.transportation') }} {{ __('consignment-notes.vehicleIdentification') }} {{ __('consignment-notes.trailer') }}
{{ __('consignment-notes.permission').":" }} {{ __('consignment-notes.permissionNumber').":" }} {{ __('consignment-notes.vehicleConfiguration').":" }} {{ __('consignment-notes.plate').":" }} {{ __('consignment-notes.year').":" }} {{ __('consignment-notes.trailerType').":" }} {{ __('consignment-notes.trailerPlate').":" }}
{{ $data->consignment['sct_permission'] }} {{ $data->consignment['permission_number'] }} {{ $data->consignment['vehicle_configuration'] }} {{ $data->consignment['plate'] }} {{ $data->consignment['vehicle_year'] }} {{ $data->consignment['trailer_type'] }} {{ $data->consignment['trailer_plate'] }}
{{ __('consignment-notes.insurance') }}
{{ __('consignment-notes.insuranceName').":" }} {{ __('consignment-notes.insurancePolicy').":" }} {{ __('consignment-notes.cargoInsuranceName').":" }}
{{ $data->consignment['insurance_name'] }} {{ $data->consignment['insurance_policy'] }} {{ $data->consignment['cargo_insurance_name'] }}
{{ __('consignment-notes.figureTypes') }}
@foreach($data->consignment['figureTypes'] as $item) @endforeach
{{ __('consignment-notes.figureType').":" }} {{ __('consignment-notes.rfc').":" }} {{ __('consignment-notes.licenseNumber').":" }}
{{ $item->figure_type.' - '.$item->description }} {{ $item->rfc }} {{ $item->license_number }}