@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('code')) @php $code = old('code'); @endphp @elseif(isset($record->code) && $record->code != '') @php $code = $record->code; @endphp @else @php $code = ''; @endphp @endif @error('code') {{ $message }} @enderror
@if(old('term')) @php $term = old('term'); @endphp @elseif(isset($record->term) && $record->term != '') @php $term = $record->term; @endphp @else @php $term = ''; @endphp @endif @error('term') {{ $message }} @enderror
@if(old('days')) @php $days = old('days'); @endphp @elseif(isset($record->days) && $record->days != '') @php $days = $record->days; @endphp @else @php $days = ''; @endphp @endif @error('days') {{ $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