@php use App\Services\PC\PcFormPcIiiBLandingService; $pciIiiBLocEdit = canField('pc-forms', 'project_brief_descriptions', 'edit'); $pciIiiBPeriodLoc = old('pc_iii_b_reporting_period'); if (! is_array($pciIiiBPeriodLoc)) { $pciIiiBPeriodLoc = $pcForm?->pc_iii_b_reporting_period ?? ($pciCrudDraftFill['pc_iii_b_reporting_period'] ?? []); if (! is_array($pciIiiBPeriodLoc)) { $pciIiiBPeriodLoc = []; } } $pciIiiBDistrictBlocks = app(PcFormPcIiiBLandingService::class) ->normalizeDistrictsPayload($pciIiiBPeriodLoc['districts'] ?? []); if ($pciIiiBDistrictBlocks === []) { $legacyTaluka = trim((string) ($pciIiiBPeriodLoc['taluka'] ?? '')); $legacyUc = trim((string) ($pciIiiBPeriodLoc['union_council'] ?? '')); $pciIiiBDistrictBlocks = [[ 'district' => trim((string) ($pciIiiBPeriodLoc['district'] ?? '')), 'rows' => [[ 'taluka' => $legacyTaluka, 'union_council' => $legacyUc, 'unit' => '', 'contractor' => '', 'consultant' => '', ]], ]]; } @endphp @once @push('stylesheets') @endpush @endonce
Reports are district-based. Enter a district, then add Taluka / U.C. / Unit / Contractor / Consultant rows. Use Add District for another district in the same report.
| Taluka | U.C | Unit | Contractor | Consultant | @if($pciIiiBLocEdit)@endif |
|---|---|---|---|---|---|
| @if($pciIiiBLocEdit) | @endif |