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

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








  
   Reset
@foreach ($payments as $payment) {{-- --}} @endforeach
PAYMENT RECEIPT NUMBER PAYMENT METHOD PAY CUSTOMER CHEQUE NO PAYMENT REMARKS AMOUNT PAYMENT 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->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 {{-- --}}
{{ $payments->appends($_GET)->links() }}
@endsection @section('custom_script') @endsection