@extends('layouts.admin') @section('content') @php $readonly=''; @endphp @if($action=='View') @php $readonly='readonly'; @endphp @endif

{{ __($title) }}

@if($action == 'Edit')
{{ method_field('PUT') }} @else @endif @csrf
@if(old('name')) @php $name = old('name'); @endphp @elseif(isset($record->name) && $record->name != '') @php $name = $record->name; @endphp @else @php $name = ''; @endphp @endif @error('name') {{ $message }} @enderror
@if(old('phone')) @php $phone = old('phone'); @endphp @elseif(isset($record->phone) && $record->phone != '') @php $phone = $record->phone; @endphp @else @php $phone = ''; @endphp @endif @error('phone') {{ $message }} @enderror
@if(old('country_id')) @php $country_id = old('country_id'); @endphp @elseif(isset($record->country_id) && $record->country_id != '') @php $country_id = $record->country_id; @endphp @else @php $country_id = ''; @endphp @endif @error('country_id') {{ $message }} @enderror
@if(old('state_id')) @php $state_id = old('state_id'); @endphp @elseif(isset($record->state_id) && $record->state_id != '') @php $state_id = $record->state_id; @endphp @else @php $state_id = ''; @endphp @endif @error('state_id') {{ $message }} @enderror
@if(old('city_id')) @php $city_id = old('city_id'); @endphp @elseif(isset($record->city_id) && $record->city_id != '') @php $city_id = $record->city_id; @endphp @else @php $city_id = ''; @endphp @endif @error('city_id') {{ $message }} @enderror
@if(old('address')) @php $address = old('address'); @endphp @elseif(isset($record->address) && $record->address != '') @php $address = $record->address; @endphp @else @php $address = ''; @endphp @endif @error('address') {{ $message }} @enderror
@if(old('zipcode')) @php $zipcode = old('zipcode'); @endphp @elseif(isset($record->zipcode) && $record->zipcode != '') @php $zipcode = $record->zipcode; @endphp @else @php $zipcode = ''; @endphp @endif @error('zipcode') {{ $message }} @enderror
@if(isset($record->active)) @php $active = $record->active; @endphp @else @php $active = 1; @endphp @endif
@if($action!='View') @endif {!! ($action!='View') ? 'Cancel' : 'Back' !!}
@endsection @push('scripts') @endpush