@php
$wu = $warehouseUser ?? null;
$selectedCountry = old('country', $wu->country ?? '');
$lockIdentity = $lockIdentity ?? false;
$statesUrl = $statesUrl ?? route('admin.warehouse_users.states');
$districtsUrl = $districtsUrl ?? route('admin.warehouse_users.districts');
@endphp
@if($lockIdentity)
Warehouse code cannot be changed.
@endif
@error('warehouse_code')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
Optional. Numbers only, no spaces or symbols.
@error('phonenumber')
{{ $message }}
@enderror
{{ $lockIdentity ? 'Email cannot be changed as it is used for login.' : 'Required. Example: name@example.com' }}
@error('email')
{{ $message }}
@enderror
Optional. Example: https://example.com
@error('website')
{{ $message }}
@enderror
Warehouse Address
@error('line1')
{{ $message }}
@enderror
@error('line2')
{{ $message }}
@enderror
@php
$selectedState = old('state', $wu->state ?? '');
$selectedDistrict = old('district', $wu->district ?? '');
$stateUsesList = $stateUsesList ?? false;
$districtUsesList = $districtUsesList ?? false;
@endphp
@error('country')
{{ $message }}
@enderror
{{ $stateUsesList ? 'Select a state from the list.' : 'This country has no state list. Type the state name.' }}
@error('state')
{{ $message }}
@enderror
{{ $districtUsesList ? 'Select a district from the list.' : 'No district list for this state. Type the district name.' }}
@error('district')
{{ $message }}
@enderror
@error('city')
{{ $message }}
@enderror
Numbers only.
@error('pincode')
{{ $message }}
@enderror
@push('scripts')
@endpush