@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(isset($record)) @php $name=$record->name; @endphp @elseif(old('name')) @php $name=old('name'); @endphp @else @php $name=''; @endphp @endif @error('name') {{ $message }} @enderror
@if(isset($record)) @php $account_no=$record->account_no; @endphp @elseif(old('account_no')) @php $account_no=old('account_no'); @endphp @else @php $account_no=''; @endphp @endif @error('account_no') {{ $message }} @enderror
@if(isset($record)) @php $payment_method_id=$record->payment_method_id; @endphp @elseif(old('payment_method_id')) @php $payment_method_id=old('payment_method_id'); @endphp @else @php $payment_method_id=0; @endphp @endif @error('payment_method_id') {{ $message }} @enderror
@if(isset($record)) @php $user_id=$record->user_id; @endphp @elseif(old('user_id')) @php $user_id=old('user_id'); @endphp @else @php $user_id=''; @endphp @endif @error('user_id') {{ $message }} @enderror
@if(isset($record)) @php $amount=$record->amount; @endphp @elseif(old('amount')) @php $amount=old('amount'); @endphp @else @php $amount=0; @endphp @endif @error('amount') {{ $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