@php echo ''; @endphp 2.1 2.0 {{ $document['series'] .'-'. $document['number'] }} {{ $document['date_of_issue'] }} {{ $document['time_of_issue'] }} {{ $document['document_type_id'] }} @if($document['observations']) @endif @foreach($document['related'] as $row) {{ $row['document_number'] }} {{ $row['document_type_id'] }} {{ $row['document_type_name'] }} {{ $row['company_number'] }} @endforeach {{ config('configuration.signature_uri') }} {{ config('configuration.signature_note') }} {{ $document['company_number'] }} #{{ config('configuration.signature_uri') }} {{ $document['company_number'] }} {{ $document['customer_number'] }} 1 {{ $document['transfer_reason_type_id'] }} @if($document['transfer_reason_type_id'] === '13') {{ func_substring($document['transfer_reason_description'], 100) }} @else {{ $document['transfer_reason_type_name'] }} @endif {{ $document['total_weight'] }} {{-- @if(isset($document["related"]) && $document['transfer_reason_type_id'])--}} {{-- --}} {{-- {{ $document['total_weight'] }}--}} {{-- --}} {{-- {{ $row['quantity'] }}--}} {{-- @endif--}} {{ $document['packages_number'] }} @if($document['is_transport_category_m1l']) SUNAT_Envio_IndicadorTrasladoVehiculoM1L @else @if($document['add_driver_and_transport']) SUNAT_Envio_IndicadorVehiculoConductoresTransp @endif @endif {{ $document['transport_mode_type_id'] }} {{ $document['date_of_shipping'] }} @if($document['transport_mode_type_id'] === '01') @if($document['dispatcher_number']) {{ $document['dispatcher_number'] }} {{ $document['dispatcher_number_mtc'] }} @endif @endif {{-- @if($document['transport_mode_type_id'] === '02' )--}} @if($document['driver_number']) {{ $document['driver_number'] }} {{ $document['driver_names'] }} {{ $document['driver_lastnames'] }} Principal {{ $document['driver_license'] }} @endif {{-- @endif--}} @if($document['delivery_type'] === 'establecimientos') {{ $document['delivery_location_id'] }} @if($document['transfer_reason_type_id'] != '02' && $document['delivery_ruc'] !== '' && $document['delivery_code'] !== '') {{ $document['delivery_code'] }} @endif @endif {{ $document['origin_location_id'] }} @if($document['transfer_reason_type_id'] != '02' && $document['origin_code'] !== '' && !in_array($document['origin_type'], ['aeropuertos', 'puertos'])) {{ $document['origin_code'] }} @endif {{-- @if($document['transport_mode_type_id'] === '02')--}} @if($document['is_transport_category_m1l']) @if($document['plate_number']) {{ $document['plate_number'] }} @endif @else @if($document['transport_principal_plate_number']) {{ $document['transport_principal_plate_number'] }} @if($document['transport_principal_authorization_entity_id']) {{ $document['transport_principal_authorization_entity_number'] }} @endif @foreach($document['transport_secondaries'] as $ts) {{ $ts['plate_number'] }} @if($ts['authorization_entity_id']) {{ $ts['authorization_entity_number'] }} @endif @endforeach @endif @endif {{-- @endif--}} @if($document['origin_type'] === 'puertos') {{ $document['origin_code'] }} 1 {{ $document['origin_name'] }} @endif @if($document['origin_type'] === 'aeropuertos') {{ $document['origin_code'] }} 2 {{ $document['origin_name'] }} @endif @if($document['delivery_type'] === 'puertos') {{ $document['delivery_code'] }} 1 {{ $document['delivery_name'] }} @endif @if($document['delivery_type'] === 'aeropuertos') {{ $document['delivery_code'] }} 2 {{ $document['delivery_name'] }} @endif @php use Modules\Configuration\Models\Configuration; $config = Configuration::query()->select('show_internal_id_xml_dispatch')->first(); @endphp @foreach($document['items'] as $row) {{ $loop->iteration }} {{ $row['quantity'] }} {{ $loop->iteration }} @if($config->show_internal_id_xml_dispatch && $row['internal_id'] !== '') @endif {{-- @if(isset($document["related"]) && $document['transfer_reason_type_id'])--}} {{-- --}} @if($row['related_dam_ds_number']) Numeracion de la DAM o DS 7021 {{ $row['related_dam_ds_number'] }} @endif {{-- --}} @if($row['related_dam_ds_series']) Numero de serie en la DAM o DS 7023 {{ $row['related_dam_ds_series'] }} @endif @endforeach