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