@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->discounted_price)) @php $discounted_price=$record->discounted_price @endphp @elseif(old('discounted_price')) @php $discounted_price=old('discounted_price') @endphp @else @php $discounted_price='' @endphp @endif @error('discounted_price')
{{ $message }}
@enderror
@if(isset($record->description)) @php $description=$record->description @endphp @elseif(old('description')) @php $description=old('description') @endphp @else @php $description='' @endphp @endif
@error('image')
{{ $message }}
@enderror
@isset($record->image) @endisset
@if(isset($record->active)) @if($record->active==1) @php $active='checked' @endphp @else @php $active='' @endphp @endif @else @php $active='checked' @endphp @endif
@endsection @push('scripts') @endpush