@extends('layouts.admin') @section('content') @php $readonly=''; @endphp @if($action=='View') @php $readonly='readonly'; @endphp @endif
@if ($errors->any()) @endif

{{ __($title) }}

@if(isset($record)) @php $id=$record->id; @endphp @else @php $id=0; @endphp @endif @if($action == 'Edit')
{{ method_field('PUT') }} @else @endif @csrf
@error('name') {{ $message }} @enderror
@error('name') {{ $message }} @enderror
@if(isset($record)) @php $type=$record->type; @endphp @else @php $type=''; @endphp @endif
@if(isset($record) && $record->price) @php $price=$record->price @endphp @else @php $price='' @endphp @endif
@if(isset($record) && $record->status!="") @php $status=$record->status @endphp @else @php $status='P' @endphp @endif

@if(isset($record) && $record->account) @php $account_id=$record->account->id @endphp @else @php $account_id=0 @endphp @endif
@if(isset($record) && $record->payment_method) @php $payment_method=$record->payment_method @endphp @else @php $payment_method='' @endphp @endif
@if(isset($record) && $record->transaction_id) @php $transaction_id=$record->transaction_id @endphp @else @php $transaction_id='' @endphp @endif
@if($action!='View') @endif {!! ($action!='View') ? 'Cancel' : 'Back' !!}
@endsection @push('scripts') @endpush