@extends('layouts.app') @push('css') @endpush @section('content')

Customers Management

@include('customer.menu')
@include('customer.tab')
@method('PUT') @csrf
@if($payment->type?->manual()) @php $media = $payment->cardHolder->getLastMedia('receipt'); @endphp @if($media)
{{ $media->file_name }} (Uploaded: {{ $media->created_at->format('d M Y H:m:s A') }})
Document deleted after payment successfully updated to paid status
@endif @endif
@error('status') {{ $message }} @enderror
$errors->has('received_date')]) id="received_date" name="received_date" value="{{ old('received_date', $payment->received_time?->toDateString()) }}"> @error('received_time') {{ $message }} @enderror
$errors->has('received_at')]) id="received_at" name="received_at" value="{{ old('received_at', $payment->received_time?->format('H:i')) }}">
$errors->has('type')]) id="type" name="type" value="{{ $payment->type->label() }}">
@error('type') {{ $message }} @enderror
$errors->has('payment_trans_id')]) id="payment_trans_id" name="payment_trans_id" value="{{ old('payment_trans_id', $payment->payment_trans_id) }}"> @error('payment_trans_id') {{ $message }} @enderror
$errors->has('buyer_bank')]) id="buyer_bank" name="buyer_bank" value="{{ old('payment_trans_id', $payment->buyer_bank) }}"> @error('buyer_bank') {{ $message }} @enderror
$errors->has('buyer_name')]) id="buyer_name" name="buyer_name" value="{{ old('buyer_name', $payment->buyer_name) }}"> @error('buyer_name') {{ $message }} @enderror
@php // Only a blank field on a payment being set to Paid gets a // generated number, so the hint — and the aria-describedby // pointing at it — is for that case. $receiptHelpId = $payment->receipt_no ? null : 'receipt_no_help'; @endphp $errors->has('receipt_no')]) id="receipt_no" name="receipt_no" placeholder="Keep blank for auto generated receipt no" @if($receiptHelpId) aria-describedby="{{ $receiptHelpId }}" @endif value="{{ old('receipt_no', $payment->receipt_no) }}"> @error('receipt_no') {{ $message }} @enderror @if($receiptHelpId)
Keep blank for an auto generated receipt no ({{ $payment->getReceiptNo() }}), issued once the status is set to Paid. Enter one to use your own instead.
@endif
$errors->has('merchant_order_no')]) id="merchant_order_no" name="merchant_order_no" value="{{ old('merchant_order_no', $payment->merchant_order_no) }}"> @error('merchant_order_no') {{ $message }} @enderror
$errors->has('status_message')]) id="status_message" name="status_message" value="{{ old('status_message', $payment->status_message) }}"> @error('status_message') {{ $message }} @enderror
Invoice

$errors->has('invoice_no')]) id="invoice_no" name="invoice_no" value="{{ old('invoice_no', $payment->invoice_no) }}"> @error('invoice_no') {{ $message }} @enderror
$errors->has('invoiced_at')]) id="invoiced_date" name="invoiced_date" value="{{ old('invoiced_date', $payment->invoiced_at?->toDateString()) }}"> @error('invoiced_at') {{ $message }} @enderror
$errors->has('invoiced_at')]) id="invoiced_time" name="invoiced_time" value="{{ old('invoiced_time', $payment->invoiced_at?->format('H:i')) }}">
$errors->has('payment_for')]) id="payment_for" name="payment_for" value="{{ old('payment_for', $payment->payment_for) }}">
@error('payment_for') {{ $message }} @enderror
$errors->has('site_id')]) id="site_id" name="site_id" value="{{ old('site_id', $payment->site_id) }}">
@error('site_id') {{ $message }} @enderror
$errors->has('card_no')]) id="card_no" name="card_no" value="{{ old('card_no', $payment->card_no) }}">
@error('card_no') {{ $message }} @enderror
RM $errors->has('amount')]) id="amount" name="amount" aria-describedby="payment-amount" value="{{ old('amount', $payment->amount) }}">
@error('amount') {{ $message }} @enderror
@endsection