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

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

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

CSVExcel{{ __('app.print') }}
{{ __('app.total') }}{{ number_format($summary['total'],2) }}
{{ __('app.paid') }}{{ number_format($summary['paid'],2) }}
{{ __('app.due') }}{{ number_format($summary['due'],2) }}
@forelse($rows as $p)@empty@endforelse
{{ __('app.invoice') }}{{ __('app.date') }}{{ __('app.type') }}{{ __('app.party') }}{{ __('app.country') }}{{ __('app.currency') }}{{ __('app.total') }}{{ __('app.paid') }}{{ __('app.due') }}
{{ $p->invoice_no }}{{ $p->invoice_date?->format('Y-m-d') }}{{ __('app.'.$p->purchase_type) }}{{ $p->supplier->name ?? $p->customerSeller->name ?? '-' }}{{ $p->country ?? '-' }}{{ $p->currency ?? 'AFN' }}{{ number_format($p->total,2) }}{{ number_format($p->paid,2) }}{{ number_format($p->due,2) }}
{{ __('app.no_records') }}
{{ $rows->links() }} @endsection