@extends('admin.layouts.admin') @section('content')
{{ $title }}
@if($action == 'Edit')
@csrf @else @csrf @endif
@if(isset($record->title)) @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->price)) @php $price=$record->price @endphp @elseif(old('price')) @php $price=old('price') @endphp @else @php $price='' @endphp @endif @error('price')
{{ $message }}
@enderror
@if(isset($record->month)) @php $month=$record->month @endphp @elseif(old('month')) @php $month=old('month') @endphp @else @php $month='' @endphp @endif @error('month')
{{ $message }}
@enderror
@if(isset($record->active)) @if($record->active==1) @php $active='checked' @endphp @else @php $active='' @endphp @endif @else @php $active='checked' @endphp @endif
@endsection