{{-- ===================================================== --}} {{-- Required Details for Sale or Let for Hire --}} {{-- ===================================================== --}}
{{-- Section Header --}}
Required Details for Sale or Let for Hire
{{-- ================================================= --}} {{-- (a) Equipment Storage Addresses --}} {{-- ================================================= --}}
(a) Equipment Storage Address(es)
@if(!empty($storageAddresses)) @foreach($storageAddresses as $index => $addr) @endforeach
# Type Address District / State Pincode Mobile Fax Email Landline
{{ $index + 1 }} @if(!empty($addr['is_primary'])) Primary @else Secondary @endif {{ $addr['address'] ?? '-' }} {{ collect([ $addr['district'] ?? null, $addr['map_states']['c_state_name'] ?? null ])->filter()->implode(', ') ?: '-' }} {{ $addr['pincode'] ?? '-' }} {{ $addr['mobile'] ?? '-' }} {{ $addr['fax'] ?? '-' }} {{ $addr['email'] ?? '-' }} {{ $addr['landline'] ?? '-' }}
@else
No storage addresses recorded.
@endif {{-- ================================================= --}} {{-- (b) Existing DPL Licence Details --}} {{-- ================================================= --}}
(b) Existing DPL Licence Details
@if(!empty($systemLicenses)) @foreach($systemLicenses as $index => $license) @endforeach
# Source Licence No Old Validity Paid Application Fee (₹) Licence Processing Fee (₹) New Validity
{{ $index + 1 }} @php $src = strtolower($license['source'] ?? ''); @endphp @if($src === 'manual') Manual @else System Fetched @endif {{ $license['licence_no'] ?? '-' }} @if(!empty($license['valid_upto'])) {{ date('d-M-Y', strtotime($license['valid_upto'])) }} @else - @endif {{ $license['paid_appln_processing_fee'] ?? '-' }} {{ $license['licence_processing_fee'] ?? '-' }} @if(!empty($license['new_validity_date'])) {{ date('d-M-Y', strtotime($license['new_validity_date'])) }} @else - @endif
@else
No existing DPL licence on record.
@endif {{-- ================================================= --}} {{-- b1. DPL Form III --}} {{-- ================================================= --}} @if(!empty($form3Details))
b1. DPL Form III
@forelse($form3Details as $index => $row) @empty @endforelse
Sr.No. Make Model & Type Chassis No Name and address of person from which received Date of Receipt of Manufacturer Invoice/Bill/Challan No Wholesale Price Retail Price Name to whome sale/transfered Date of Sale/Transfer Voucher Cash Receipt No Purchaser License No License Issue Date Office Of Issue Quantity Equipment Sr.No.
{{ $index + 1 }} {{ $row['make'] ?? '-' }} {{ $row['model'] ?? '-' }} {{ $row['chassis_no'] ?? '-' }} {{ $row['person_details'] ?? '-' }} {{ !empty($row['date_of_receipt_of_manufacturer']) ? date('d-m-Y', strtotime($row['date_of_receipt_of_manufacturer'])) : '-' }} {{ $row['invoice_no'] ?? '-' }} {{ !is_null($row['wholesale_price']) && $row['wholesale_price'] !== '' ? number_format((float) $row['wholesale_price'], 2) : '-'}} {{ !is_null($row['retail_price']) && $row['retail_price'] !== '' ? number_format((float) $row['retail_price'], 2) : '-'}} {{ $row['name_to_whome_sale_transfered'] ?? '-' }} {{ !empty($row['date_of_sale_transfer']) ? date('d-m-Y', strtotime($row['date_of_sale_transfer'])) : '-' }} {{ $row['voucher_cash_receipt_no'] ?? '-' }} {{ $row['purchaser_license_no'] ?? '-' }} {{ !empty($row['license_issue_date']) ? date('d-m-Y', strtotime($row['license_issue_date'])) : '-' }} {{ $row['office_of_issue'] ?? '-' }} {{ $row['quantity'] ?? '-' }} {{ $row['equipment_srno'] ?? '-' }}
No records.
@endif {{-- ================================================= --}} {{-- b2. DPL Form IV --}} {{-- ================================================= --}} @if(!empty($form4Details))
b2. DPL Form IV
@forelse($form4Details as $index => $row) @empty @endforelse
# Make Model Quantity
{{ $index + 1 }} {{ $row['make'] ?? '-' }} {{ $row['model'] ?? '-' }} {{ $row['quantity'] ?? '-' }}
No records.
@endif {{-- ================================================= --}} {{-- b3. DPL Form V --}} {{-- ================================================= --}} @if(!empty($form5Details))
b3. DPL Form V
@forelse($form5Details as $index => $row) @empty @endforelse
# Make Model Quantity
{{ $index + 1 }} {{ $row['make'] ?? '-' }} {{ $row['model'] ?? '-' }} {{ $row['quantity'] ?? '-' }}
No records.
@endif {{-- ================================================= --}} {{-- (c) Equipment Details --}} {{-- ================================================= --}}
(c) Equipment Details
@if(!empty($saleHireEquipment)) @foreach($saleHireEquipment as $index => $equipment) @php $category = $equipment['equipment_category'] ?? '-'; if ($category === 'Other') { $category = $equipment['custom_equipment_category'] ?? $category; } $modelType = $equipment['equipment_model_type'] ?? '-'; if ($modelType === 'Other') { $model = $equipment['custom_equipment_model_type'] ?? $modelType; } elseif (!empty($modelType) && $modelType !== '-') { $resolvedModel = \DB::table('wpc_equip_lib_masters') ->where('id', $modelType) ->value('c_model'); $model = $resolvedModel ?? $modelType; } else { $model = $modelType; } $frequencies = $equipment['frequency'] ?? []; if (is_string($frequencies)) { $frequencies = json_decode($frequencies, true) ?? []; } $rfPowers = $equipment['rf_power'] ?? []; if (is_string($rfPowers)) { $rfPowers = json_decode($rfPowers, true) ?? []; } $originCountry = data_get($equipment, 'map_origin_country.c_country_name', '-'); $mfgCountry = data_get($equipment, 'map_manufacturer_country.c_country_name', '-'); $storageLocations = $equipment['map_storage_addresses'] ?? []; $techDocName = data_get($equipment, 'map_files.c_file_name', null); @endphp {{-- Row 2: Manufacturer / Make --}}
Equipment {{ $index + 1 }}
Equipment Category {{ $category }} Model {{ $model }}
Quantity Proposed to Procure {{ $equipment['quantity_proposed'] ?? '-' }} Manufacturer {{ $equipment['manufacturer'] ?? '-' }}
Make {{ $equipment['make'] ?? '-' }} Frequency / Freq. Band @if(!empty($frequencies)) @foreach($frequencies as $freq) {{ $freq['value'] ?? '' }} {{ $freq['unit'] ?? '' }}@if(!$loop->last), @endif @endforeach @else - @endif
RF Power @if(!empty($rfPowers)) @foreach($rfPowers as $power) @php $unit = $power['unit'] ?? ''; if ($unit === 'milliwatt') { $unit = 'mW'; } if ($unit === 'watt') { $unit = 'W'; } @endphp {{ $power['value'] ?? '' }} {{ $unit }}@if(!$loop->last), @endif @endforeach @else - @endif Country of Origin {{ $originCountry }}
Country of Manufacture {{ $mfgCountry }} Storage Location @if(!empty($storageLocations))
    @foreach($storageLocations as $loc)
  • {{ $loc['address'] ?? '-' }} @if(!empty($loc['district'])) ({{ $loc['district'] }}) @endif
  • @endforeach
@else - @endif
Technical Literature Document @if($techDocName) {{ $techDocName }} @else Not uploaded @endif
@endforeach @else
No equipment details provided.
@endif {{-- ================================================= --}} {{-- Licence Period --}} {{-- ================================================= --}}
Licence Period (Years) {{ !empty($licencePeriod) ? $licencePeriod . ' Year(s)' : '-' }}