@extends('layouts.app') @section('content')

{{ __('xpayment::payment.headings.payment') }}








@if (!empty($payments)) @forelse ($payments as $payment) {{-- --}} @empty @endforelse @else @endif
PAYMENT RECEIPT NUMBER PAYMENT METHOD PAY CUSTOMER CHEQUE NO PAYMENT REMARKS AMOUNT PAYMENT DATE EFFECTIVE DATE STATUS REP ACTION
{{ $payment->id }} {{ $payment->payment_code }} {{ $payment->payment_method }} @if (isset($payment->invoice->customer->business_name)) {{ $payment->invoice->customer->business_name }} @elseif (isset($payment->customer->business_name)) {{ $payment->customer->business_name }} @else - @endif - @if (isset($payment->invoice->customer->company_name)) {{ $payment->invoice->customer->company_name }} @elseif (isset($payment->customer->company_name)) {{ $payment->customer->company_name }} @else - @endif {{$payment->cheque_id ?? ''}}{{ !empty($payment->cheque->payment_ref_no) ? $payment->cheque->payment_ref_no : '' }} {{ $payment->payment_remarks }} {{ App\Http\Helper::formatPrice($payment->payment_amount) }} {{ $payment->payment_date }} @if ($payment->payment_method != 'Cheque') {{ $payment->cheque_date ?? '' }} @else 'N/A' @endif @if ($payment->status != 0) Completed @elseif ($payment->cheque_status == 2) Cancelled @else Pending @endif @if (!empty($payment->rep_id)) {{-- @php $rep = Pramix\XUser\Models\User::find($payment->rep_id); @endphp {{ $rep->username or 'N/A' }} --}} @php $rep = DB::table('users')->find($payment->rep_id); // dd($rep); @endphp {{ $rep->username }} @else {{ 'N/A' }} @endif {{-- --}}
No found data.
No found data.
@if (!empty($payments))
{{ $payments->appends($_GET)->links() }}
@endif
@endsection @section('custom_script') @endsection