{{-- ===================================================== --}}
{{-- 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))
|
# |
Type |
Address |
District /
State |
Pincode |
Mobile |
Fax |
Email |
Landline |
@foreach($storageAddresses as $index => $addr)
| {{ $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'] ?? '-' }} |
@endforeach
@else
| No storage addresses
recorded. |
@endif
{{-- ================================================= --}}
{{-- (b) Existing DPL Licence Details --}}
{{-- ================================================= --}}
(b) Existing DPL Licence Details
@if(!empty($systemLicenses))
|
# |
Source |
Licence No |
Old Validity
|
Paid
Application Fee (₹) |
Licence
Processing Fee (₹) |
New Validity
|
@foreach($systemLicenses as $index => $license)
| {{ $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
|
@endforeach
@else
| No existing DPL licence
on record. |
@endif
{{-- ================================================= --}}
{{-- b1. DPL Form III --}}
{{-- ================================================= --}}
@if(!empty($form3Details))
b1. DPL Form III
| 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. |
@forelse($form3Details as $index => $row)
| {{ $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'] ?? '-' }} |
@empty
| No
records. |
@endforelse
@endif
{{-- ================================================= --}}
{{-- b2. DPL Form IV --}}
{{-- ================================================= --}}
@if(!empty($form4Details))
b2. DPL Form IV
|
# |
Make |
Model |
Quantity |
@forelse($form4Details as $index => $row)
| {{ $index + 1 }} |
{{ $row['make'] ?? '-' }} |
{{ $row['model'] ?? '-' }} |
{{ $row['quantity'] ?? '-' }} |
@empty
| No
records. |
@endforelse
@endif
{{-- ================================================= --}}
{{-- b3. DPL Form V --}}
{{-- ================================================= --}}
@if(!empty($form5Details))
b3. DPL Form V
|
# |
Make |
Model |
Quantity |
@forelse($form5Details as $index => $row)
| {{ $index + 1 }} |
{{ $row['make'] ?? '-' }} |
{{ $row['model'] ?? '-' }} |
{{ $row['quantity'] ?? '-' }} |
@empty
| No
records. |
@endforelse
@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
| Equipment Category |
{{ $category }} |
Model |
{{ $model }} |
{{-- Row 2: Manufacturer / Make --}}
| 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)' : '-' }}
|