@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
@php $module_id=0 @endphp @if(old('module_id')) @php $module_id=old('module_id') @endphp @elseif(isset($record->module)) @php $module_id=$record->module->module_id @endphp @endif @error('module_id') {{ $message }} @enderror
@if(old('permission')) @php $permission = old('permission'); @endphp @elseif(isset($record->name) && $record->name != '') @php $permission = $record->name; @endphp @else @php $permission = ''; @endphp @endif @error('permission') {{ $message }} @enderror
@if(old('slug')) @php $slug = old('slug'); @endphp @elseif(isset($record->slug) && $record->slug != '') @php $slug = $record->slug; @endphp @else @php $slug = ''; @endphp @endif @error('slug') {{ $message }} @enderror
@if($action!='View') @endif {!! ($action!='View') ? 'Cancel' : 'Back' !!}
@endsection