@extends('layouts.app') @section('title', __('Payments & Receipts')) @section('content')
{{ __('Payments & Receipts') }}
{{ __('Customer Receipts') }} {{ __('and') }} {{ __('Supplier Payments') }}
{{ __('Receive from Customer') }}
@csrf
{{ __('Unpaid and partially paid sales invoices') }}
{{ __('No invoices selected.') }}
@csrf
{{ __('Pay Supplier') }}
@csrf
{{ __('Unpaid and partially paid supplier purchase invoices') }}
{{ __('No purchases selected.') }}
@csrf
{{ __('Cash Given to Customer') }}
@csrf
{{ __('Recent Customer Receipts') }}
{{ __('View all') }}
@forelse($receipts as $receipt)@empty@endforelse
{{ __('Date') }}{{ __('Customer') }}{{ __('Amount') }}
{{ $receipt->payment_date->format('d M') }}{{ $receipt->customer?->name ?? __('Walk-in Customer') }}{{ $receipt->allocations->count() > 1 ? __('Multiple invoices') : ($receipt->invoice?->invoice_number ?? $receipt->allocations->first()?->invoice?->invoice_number) }}{{ number_format($receipt->amount,2) }} {{ $receipt->currency_code }}
{{ __('No receipts yet.') }}
{{ __('Recent Supplier Payments') }}
{{ __('View all') }}
@forelse($supplierPayments as $payment)@empty@endforelse
{{ __('Date') }}{{ __('Supplier') }}{{ __('Amount') }}
{{ $payment->payment_date->format('d M') }}{{ $payment->supplier?->name }}{{ $payment->allocations->count() > 1 ? __('Multiple purchases') : ($payment->purchase?->purchase_number ?? $payment->allocations->first()?->purchase?->purchase_number) }}{{ number_format($payment->amount,2) }} {{ $payment->currency_code }}
{{ __('No supplier payments yet.') }}
{{ __('Other Receipt') }}
@csrf
{{ __('Other Payment') }}
@csrf
{{ __('Recent Other Transactions') }}
@forelse($generalTransactions as $transaction) @empty @endforelse
{{ __('Date') }}{{ __('Type') }}{{ __('Party') }}{{ __('Category') }}{{ __('Amount') }}{{ __('Actions') }}
{{ $transaction->transaction_date->format('Y-m-d') }} {{ __(ucfirst($transaction->type)) }} {{ $transaction->customer?->name ?? $transaction->party_name ?: '-' }} {{ $transaction->category }} {{ number_format($transaction->amount,2) }} {{ $transaction->currency_code }}
@csrf @method('DELETE')
{{ __('No general transactions yet.') }}
@endsection @push('scripts') @endpush