@extends('companyuser::layouts.master') @section('title', __('sales::customers.Edit Customer')) @section('extra-styles') @endsection @section('breadcrumb')
@endsection @php $complyWithTaxInvoice = ($companyInfo->zatca_comply && $isNotSimplifiedOnly); @endphp @section('content') @php $optionalAddressFields = ['building_number', 'address_number', 'district', 'province']; // Keep the KSA-only fields open when the user already put something in them, // so a failed submit never hides what they typed. $revealOptionalAddress = $errors->hasAny($optionalAddressFields) || collect($optionalAddressFields)->contains(fn ($field) => filled(old($field) ?? $customer->{$field})); @endphp