@foreach ([
['customer_name', 'Full Name', 'text', 'name', true, $buyer?->full_name ?? auth()->user()?->name, 150],
['customer_email', 'Email (optional)', 'email', 'email', false, $buyer?->email ?? auth()->user()?->email, 150],
['customer_phone', $phoneRequired ? 'Phone Number' : 'Phone Number (optional)', 'tel', 'tel', $phoneRequired, $buyer?->phone ?? auth()->user()?->phone, 30],
] as [$field, $label, $type, $autocomplete, $isRequired, $value, $maxLength])
$field !== 'customer_name'])>
$errors->has($field)]) @error($field) aria-describedby="{{ $field }}-error" @enderror>
@error($field)
{{ $message }}
@enderror
@endforeach
{{-- A plain list without JavaScript; with it, a search box that shows "Area, District, Division" while typing. --}}
Type your area, district or division in English or বাংলা, then choose it from the list.
@error('delivery_area_id')
{{ $message }}
@enderror
{{-- The three zones and their charges. Choosing an Area picks the matching zone; the server checks they agree. --}}
@error('shipping_address')
{{ $message }}
@enderror
@error('notes')
{{ $message }}
@enderror