@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(isset($record->image) && $record->image != '') @php $image = $record->image; @endphp @else @php $image = ''; @endphp @endif
@if($image!="") @endif
@error('image') {{ $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