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

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

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

{{ __('app.supplier_purchase') }}{{ __('app.customer_purchase') }}{{ __('app.import_purchase') }}
@forelse($rows as $p)@empty@endforelse
{{ __('app.invoice') }}{{ __('app.date') }}{{ __('app.type') }}{{ __('app.party') }}{{ __('app.country') }}{{ __('app.currency') }}{{ __('app.total') }}{{ __('app.paid') }}{{ __('app.due') }}{{ __('app.action') }}
{{ $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.view') }} {{ __('app.edit') }}
@csrf @method('delete')
{{ __('app.no_records') }}
{{ $rows->links() }} @endsection