{{-- ===================================================== --}}
{{-- 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 --}}
{{-- ================================================= --}}
b1. DPL Form III (Total Records: {{ number_format($form3Details) }})
@if(isset($form3DownloadUrl))
@php
$relativePath = $form3DownloadUrl->file_path;
$encryptedPath = Crypt::encryptString($relativePath);
$secureFileParam = urlencode($encryptedPath);
@endphp
Download Excel File
@endif
{{-- ================================================= --}}
{{-- b2. DPL Form IV --}}
{{-- ================================================= --}}
b2. DPL Form IV (Total Records: {{ number_format($form4Details) }})
@if(isset($form4DownloadUrl))
@php
$relativePath = $form4DownloadUrl->file_path;
$encryptedPath = Crypt::encryptString($relativePath);
$secureFileParam = urlencode($encryptedPath);
@endphp
Download Excel File
@endif
{{-- ================================================= --}}
{{-- b3. DPL Form V --}}
{{-- ================================================= --}}
b3. DPL Form V (Total Records: {{ number_format($form5Details) }})
@if(isset($form5DownloadUrl))
@php
$relativePath = $form5DownloadUrl->file_path;
$encryptedPath = Crypt::encryptString($relativePath);
$secureFileParam = urlencode($encryptedPath);
@endphp
Download Excel File
@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)' : '-' }}
|