@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(isset($record)) @php $name=$record->name; @endphp @elseif(old('name')) @php $name=old('name'); @endphp @else @php $name=''; @endphp @endif @error('name') {{ $message }} @enderror
@if(isset($record)) @php $phone=$record->phone; @endphp @elseif(old('phone')) @php $phone=old('phone'); @endphp @else @php $phone=''; @endphp @endif @error('phone') {{ $message }} @enderror
@if(isset($record)) @php $email=$record->email; @endphp @elseif(old('email')) @php $email=old('email'); @endphp @else @php $email=''; @endphp @endif @error('email') {{ $message }} @enderror
@if(isset($record)) @php $address=$record->address; @endphp @elseif(old('address')) @php $address=old('address'); @endphp @else @php $address=''; @endphp @endif @error('address') {{ $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