@extends('layouts.app') @section('title', __('Payments & Receipts')) @section('content')
{{ __('Receive from Customer') }}

{{ __('Record money received against a customer sale.') }}

@csrf
{{ __('Pay Supplier') }}

{{ __('Record money paid against a supplier purchase.') }}

@csrf
{{ __('Recent Customer Receipts') }}
@forelse($receipts as $receipt)@empty@endforelse
{{ __('Date') }}{{ __('Customer') }}{{ __('Amount') }}
{{ $receipt->payment_date->format('d M') }}{{ $receipt->customer?->name ?? __('Walk-in Customer') }}{{ $receipt->invoice?->invoice_number }}{{ number_format($receipt->amount,2) }} {{ $receipt->currency_code }}
{{ __('No receipts yet.') }}
{{ __('Recent Supplier Payments') }}
@forelse($supplierPayments as $payment)@empty@endforelse
{{ __('Date') }}{{ __('Supplier') }}{{ __('Amount') }}
{{ $payment->payment_date->format('d M') }}{{ $payment->supplier?->name }}{{ $payment->purchase?->purchase_number }}{{ number_format($payment->amount,2) }} {{ $payment->currency_code }}
{{ __('No supplier payments yet.') }}
{{ __('General Receipt') }}
@csrf
{{ __('General Payment') }}
@csrf
{{ __('General Transactions') }}
@forelse($generalTransactions as $transaction)@empty@endforelse
{{ __('Date') }}{{ __('Type') }}{{ __('Party') }}{{ __('Category') }}{{ __('Amount') }}
{{ $transaction->transaction_date->format('d M Y') }}{{ ucfirst($transaction->type) }}{{ $transaction->party_name }}{{ $transaction->category }}{{ number_format($transaction->amount,2) }} {{ $transaction->currency_code }}
{{ __('No general transactions yet.') }}
@endsection