@php use App\Livewire\Wpc\Enums\ApplicantTypeEnum; use App\Livewire\Wpc\WpcConstants; // ── helpers ────────────────────────────────────────────────────────────────── // Resolve Type of Applicant label from enum $applicantTypeLabel = '-'; if (!empty($technicalDetails['applicant_type'])) { try { $applicantTypeLabel = ApplicantTypeEnum::from($technicalDetails['applicant_type'])->label(); } catch (\ValueError $e) { $applicantTypeLabel = $technicalDetails['applicant_type']; } } // Resolve Type of Technology label $techTypeMap = [ '5G' => '5G', '1005GLas' => '100 5G Las', 'Non-5G' => 'Non-5G', 'Other' => 'Other', ]; $typeOfTech = $technicalDetails['type_of_technology'] ?? ''; $typeOfTechLabel = $techTypeMap[$typeOfTech] ?? $typeOfTech; if ($typeOfTech === 'Other' && !empty($technicalDetails['custom_type_of_technology'])) { $typeOfTechLabel = $technicalDetails['custom_type_of_technology']; } // Resolve Purpose of Applying label from WpcConstants dropdown $purposeId = $technicalDetails['purpose_for_applying'] ?? null; $purposeLabel = '-'; if (!is_null($purposeId) && $purposeId !== '') { $purposeLabel = WpcConstants::DEMO_PURPOSE_DROPDOWN[(int) $purposeId] ?? $purposeId; if ((int) $purposeId === 9 && !empty($technicalDetails['custom_purpose_for_applying'])) { $purposeLabel = $technicalDetails['custom_purpose_for_applying']; } } // Proposed Authorisation Start Date — stored directly on technicalDetails $freqAuthStartDate = $technicalDetails['freq_auth_start_date'] ?? null; // Location fields — buildDemoPdfData maps c_district → 'district', c_state → 'state', c_address → 'address' $district = $technicalDetails['district'] ?? $technicalDetails['c_district'] ?? '-'; $state = $technicalDetails['state'] ?? $technicalDetails['c_state'] ?? '-'; $address = $technicalDetails['address'] ?? $technicalDetails['c_address'] ?? '-'; // Coordinates – direction stored as 'north'/'south'/'east'/'west', display as uppercase $formatDMS = function ($deg, $min, $sec, $dir) { if ($deg === null && $min === null && $sec === null) { return '-'; } return ($deg ?? '00') . '° ' . ($min ?? '00') . '\' ' . ($sec ?? '00') . '" ' . strtoupper($dir ?? ''); }; // Testing / operation details — directly on technicalDetails from buildDemoPdfData $operationArea = $technicalDetails['operationArea'] ?? '-'; $testingStart = $technicalDetails['testingStartDate'] ?? null; $testingEnd = $technicalDetails['testingEndDate'] ?? null; $foreignNationals = !empty($technicalDetails['particularsForeignNationals']) || !empty($technicalDetails['particulars_foreign_national']); $frequencyMode = $technicalDetails['frequencyMode'] ?? '-'; $numFrequencies = $technicalDetails['num_frequencies'] ?? '-'; $freqJustification = $technicalDetails['frequency_justification'] ?? '-'; @endphp {{-- ============================================================ --}} {{-- A. Required Technical Details --}} {{-- ============================================================ --}}
Required Details for Demonstration / Testing
Technical Details
Application Category {{ $technicalDetails['application_category'] ?? 'Possession for Demonstration/Testing Authorisation' }}
Are you an entity/subsidiary of any company sharing land border with India viz. Afghanistan, Pakistan, China, Bhutan, Nepal, Myanmar and Bangladesh? {{ $technicalDetails['sharing_land_border'] ?? '-' }}
Type of Applicant {{ $applicantTypeLabel }}
Nature of activity in which engaged {{ $technicalDetails['nature_of_activity'] ?? '-' }}
Type of Technology {{ $typeOfTechLabel }}
Purpose of applying for Radio Equipment Possession Authorisation {{ $purposeLabel }}
Usage For indoor or radiating up to 100 mW Only
Authorisation Period (Months) @if(!empty($technicalDetails['auth_perod_in_months'])) {{ $technicalDetails['auth_perod_in_months'] }} Month(s) @else - @endif
Proposed (Requested) Authorisation Start Date @if(!empty($freqAuthStartDate)) {{ date('d-m-Y', strtotime($freqAuthStartDate)) }} @else - @endif
{{-- ============================================================ --}} {{-- B. Location of Demonstration / Testing --}} {{-- ============================================================ --}}
Location of Demonstration/Testing (wireless stations)
Pin Code {{ $technicalDetails['pin_code'] ?? '-' }}
District {{ $district }}
State {{ $state }}
Address of Activity Site {{ $address }}
{{-- ============================================================ --}} {{-- C. Coordinates --}} {{-- ============================================================ --}}
Geo-Location of Demonstration/Testing (wireless stations)
Latitude {{ $formatDMS( $technicalDetails['latitude_deg'] ?? null, $technicalDetails['latitude_min'] ?? null, $technicalDetails['latitude_sec'] ?? null, $technicalDetails['latitude_dir'] ?? $technicalDetails['latitude_dir'] ?? 'NORTH' ) }}
Longitude {{ $formatDMS( $technicalDetails['longitude_deg'] ?? null, $technicalDetails['longitude_min'] ?? null, $technicalDetails['longitude_sec'] ?? null, $technicalDetails['longitude_dir'] ?? $technicalDetails['longitude_dir'] ?? 'EAST' ) }}
Area of Operation {{ $operationArea }}
Demonstration/Testing Start Date @if(!empty($testingStart)) {{ date('d-m-Y', strtotime($testingStart)) }} @else - @endif
Demonstration/Testing End Date @if(!empty($testingEnd)) {{ date('d-m-Y', strtotime($testingEnd)) }} @else - @endif
Particulars of foreign nationals, if any, who will operate the wireless network (Name, Nationality, Home Address, Passport and Visa No. with date of validity etc.) {{ $foreignNationals ? 'Yes' : 'No' }}
Upload Schematic diagram @php $requiredDocs = ['SCHEMATIC' => 'Schematic Diagram']; $counter = 1; @endphp @include('livewire.wpc.repa.preview.partials.file')
Upload Test Set-up for Public Access Testbeds @php $requiredDocs = ['TESTBED' => 'Test Setup / Testbed']; $counter = 1; @endphp @include('livewire.wpc.repa.preview.partials.file')
{{-- ============================================================ --}} {{-- D. Frequency Requirements --}} {{-- ============================================================ --}}
Frequency Requirements
Number of Frequencies Desired {{ $numFrequencies }}
Mode of Operation {{ !empty($frequencyMode) ? ucfirst($frequencyMode) : '-' }}
Justification (if more than one frequency desired) {{ $freqJustification }}
{{-- ============================================================ --}} {{-- E. Carrier Frequency Details --}} {{-- ============================================================ --}} @if($selectedCategory['show_carrier_frequency'])
Carrier Frequency Details
@forelse($carrierFrequency as $idx => $cf) @empty @endforelse
Frequency Emission Emission BW RF Power
{{ $cf['frequency'] ?? '-' }} {{ $cf['frequency_unit'] ?? '' }} {{ $cf['emission'] ?? '-' }} {{ $cf['emission_bw'] ?? '-' }} {{ $cf['rf_power'] ?? '-' }} {{ $cf['rf_power_unit'] ?? '' }}
No carrier frequency details provided.
@endif {{-- ============================================================ --}} {{-- F. Equipment Details --}} {{-- ============================================================ --}}
Equipment Details
@forelse($equipmentDetails as $index => $eq) {{-- TX Frequencies --}} {{-- Emissions --}} {{-- RF Powers --}} {{-- Technical Literature — scoped to this equipment via uploaded_file_id --}}
Equipment #{{ $index + 1 }} — {{ $eq['equipment_name'] ?? '-' }}
Equipment Name {{ $eq['equipment_name'] ?? '-' }} Model {{ $eq['model'] ?? '-' }}
Make / Manufacturer {{ $eq['make_manufacturer'] ?? '-' }} Quantity {{ $eq['equipment_quantity'] ?? '-' }}
Country (Manufacturer) {{ $eq['country'] ?? '-' }} Imported? @php $imp = $eq['is_imported'] ?? '0'; @endphp {{ ($imp === '1' || $imp === 1 || $imp === true) ? 'Yes' : 'No' }}
Country of Origin {{ $eq['country_of_origin'] ?? '-' }} Manufacturer Address {{ $eq['manufacturer_address'] ?? '-' }}
Port of Import {{ $eq['port_of_import'] ?? '-' }} Antenna Type {{ $eq['antenna_type'] ?? '-' }}
Antenna Size {{ $eq['antenna_size'] ?? '-' }} Antenna Gain {{ $eq['antenna_gain'] ?? '-' }}
EIRP {{ $eq['eirps'] ?? '-' }} {{ $eq['eirps_unit'] ?? '' }}
TX Frequency Range
    @forelse($eq['tx_frequencies'] ?? [] as $tx) @php $tx = is_array($tx) ? $tx : (array) $tx; @endphp
  • • {{ $tx['value'] ?? '' }} {{ $tx['unit'] ?? 'Hz' }}
  • @empty
  • -
  • @endforelse
RX Frequency Range
    @forelse($eq['rx_frequencies'] ?? [] as $rx) @php $rx = is_array($rx) ? $rx : (array) $rx; @endphp
  • • {{ $rx['value'] ?? '' }} {{ $rx['unit'] ?? 'Hz' }}
  • @empty
  • -
  • @endforelse
Emission
    @forelse($eq['emissions'] ?? [] as $em) @php $em = is_array($em) ? $em : (array) $em; @endphp
  • • {{ $em['value'] ?? '-' }} {{ !empty($em['type']) ? $em['type'] : '' }}
  • @empty
  • -
  • @endforelse
Emission BW
    @forelse($eq['emission_bws'] ?? [] as $ebw) @php $ebw = is_array($ebw) ? $ebw : (array) $ebw; @endphp
  • • {{ $ebw['value'] ?? '' }} {{ $ebw['unit'] ?? '' }}
  • @empty
  • -
  • @endforelse
RF Power
    @forelse($eq['rf_powers'] ?? [] as $rp) @php $rp = is_array($rp) ? $rp : (array) $rp; @endphp
  • • {{ $rp['value'] ?? '' }} {{ !empty($rp['unit']) ? $rp['unit'] : 'mW' }}
  • @empty
  • -
  • @endforelse
Max RF Power
    @forelse($eq['max_powers'] ?? [] as $mp) @php $mp = is_array($mp) ? $mp : (array) $mp; @endphp
  • • {{ $mp['value'] ?? '' }} {{ !empty($mp['unit']) ? $mp['unit'] : 'mW' }}
  • @empty
  • -
  • @endforelse
Technical Literature Document @if(!empty($eq['technical_literature']['c_file_name'])) (Y) {{ $eq['technical_literature']['c_file_name'] }} @else X @endif
@empty
No equipment details provided.
@endforelse