@extends('layouts.list_pdf') @section('pdf-title') {{ __('Customer Payment Lists') }} @endsection @section('header-info')

{{ __('Customer Payment Lists') }}

{{__('Name:')}} {{ isset($customerData) && !empty($customerData) ? $customerData->first_name . ' '. $customerData->last_name : __('All Customer') }}

@if (isset($date_range) && !empty($date_range))

{{__('Period:')}} {{ $date_range }}

@endif

{{ __('Print Date:') }} {{ formatDate(date('d-m-Y')) }}

@endsection @section('list-table') @foreach($paymentList as $data) @endforeach
{{ __('No') }} # {{ __('Invoice No') }} {{ __('Customer Name') }} {{ __('Payment Method') }} {{ __('Amount') }} {{ __('Currency') }} {{ __('Status') }} {{ __('Date') }}
{{ sprintf("%04d", $data->id) }} {{ $data->saleOrder->reference }} {{ $data->customer->name }} {{ isset($data->paymentMethod) ? $data->paymentMethod->name : '-' }} {{ formatCurrencyAmount($data->amount) }} {{ $data->currency->name }} {{ $data->status }} {{ formatDate($data->transaction_date) }}
@endsection