@extends('layouts.app') @section('content') @php($base = array_merge(['type'=>$type], request()->query()))

{{ __('app.'.str_replace('-','_',$type).'_report') }}

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

CSV Excel {{ __('app.print') }}
{{ __('app.total') }}{{ number_format($summary['total'],2) }}
{{ __('app.records') }}{{ $summary['count'] }}
@forelse($rows as $p)@empty@endforelse
{{ __('app.date') }}{{ __('app.party') }}{{ __('app.amount') }}{{ __('app.method') }}{{ __('app.reference') }}{{ __('app.notes') }}
{{ $p->payment_date?->format('Y-m-d') }}{{ $p->supplier->name ?? $p->customer->name ?? '-' }}{{ number_format($p->amount,2) }} {{ $p->currency }}{{ __('app.'.$p->method) }}{{ $p->reference }}{{ $p->notes }}
{{ __('app.no_records') }}
{{ $rows->links() }} @endsection