@php
$selectFields = [
['business_type', $businessTypes, 'title'],
['industry_sector', $industrySectors, 'name'],
['business_segment', $businessSegments, 'title'],
['number_of_employees', ['1–5', '6–20', '21–100', '100+']],
['monthly_revenue', ['<1M', '1–5M', '5–20M', '20M+ TZS']],
['business_age', ['<1 year', '1–3 years', '3–5 years', '5+ years']],
];
@endphp
@foreach ($selectFields as $field)
@php
$name = $field[0];
$options = $field[1];
$label = ucfirst(str_replace('_', ' ', $name));
$displayKey = $field[2] ?? null;
@endphp
@endforeach
{{-- File Uploads --}}
@php
$uploads = [
['certificate_incorporation', isset($customer) && $customer->certificate_incorporation ? $customer->certificate_incorporation : null],
['business_license', isset($customer) && $customer->business_license ? $customer->business_license : null],
['company_profile', isset($customer) && $customer->company_profile ? $customer->company_profile : null],
];
@endphp
@foreach ($uploads as [$name, $existingFile])
@php
$fileId = str_replace('_', '-', $name);
$fileName = $existingFile ? basename($existingFile) : null;
@endphp
{{ $fileName ?? '' }}
{{--
--}}
@endforeach
@php
$certFileName = isset($customer) && $customer->certificate_incorporation ? basename($customer->certificate_incorporation) : null;
$licenseFileName = isset($customer) && $customer->business_license ? basename($customer->business_license) : null;
$profileFileName = isset($customer) && $customer->company_profile ? basename($customer->company_profile) : null;
@endphp
{{-- @push('scripts') --}}
{{-- @endpush --}}