@extends('layouts.app') @section('title', __('app.payments')) @section('content')

{{ __('app.payments') }}

{{ __('app.payments_hint') }}

{{ __('app.payment_to_supplier') }} {{ __('app.received_from_customer') }}
@forelse($payments as $p)@empty@endforelse
{{ __('app.date') }}{{ __('app.type') }}{{ __('app.party') }}{{ __('app.amount') }}{{ __('app.method') }}{{ __('app.reference') }}{{ __('app.notes') }}{{ __('app.action') }}
{{ $p->payment_date?->format('Y-m-d') }}{{ __('app.'.$p->type) }}{{ $p->supplier->name ?? $p->customer->name ?? '-' }}{{ __('app.'.$p->payee_type) }}{{ number_format($p->amount,2) }} {{ $p->currency ?? 'AFN' }}{{ __('app.'.$p->method) }}{{ $p->reference }}{{ $p->notes }} {{ __('app.edit') }}
@csrf @method('delete')
{{ __('app.no_records') }}
{{ $payments->links() }} @endsection