{{ __('Purchases Total') }}

{{ format_currency($this->TotalPurchases) }}

{{ __('Total Payments') }}

{{ format_currency($this->TotalPayments) }}

{{ __('Total Purchase Returns') }}

{{ format_currency($this->TotalPurchaseReturns) }}

{{ __('Due amount') }}

{{ format_currency($this->Debit) }}

{{ __('Purchases') }}

@if ($selected) @endif @if ($this->selectedCount)

{{ $this->selectedCount }} {{ __('Entries selected') }}

@endif
{{ __('Date') }} {{ __('Customer') }} {{ __('Payment status') }} {{ __('Due Amount') }} {{ __('Total') }} {{ __('Status') }} {{ __('Actions') }} @forelse ($this->purchases as $purchase) {{ $purchase->date }} {{ $purchase->supplier->name }} @php $type = $purchase->payment_status->getBadgeType(); @endphp {{ $purchase->payment_status->getName() }} {{ format_currency($purchase->due_amount) }} {{ format_currency($purchase->total_amount) }} @php $badgeType = $purchase->status->getBadgeType(); @endphp {{ $purchase->status->getName() }}
{{ __('View') }} @can('purchase_update') {{ __('Edit') }} @endcan {{ __('Print') }}
@empty
{{ __('No results found') }}
@endforelse
{{ $this->purchases->links() }}

{{ __('Payments') }}

{{ __('Date') }} {{ __('Reference') }} {{ __('Amount') }} {{ __('Due Amount') }} {{ __('Payment Method') }} {{ __('Actions') }} @foreach ($this->supplierPayments as $supplierPayment) @forelse ($supplierPayment->purchasepayments as $purchasepayment) {{ $purchasepayment->created_at }} {{ $purchasepayment->purchase->reference }} {{ format_currency($purchasepayment->amount) }} {{ format_currency($purchasepayment->purchase->due_amount) }} {{ $purchasepayment->payment_method }} @can('access_purchase_payments') @endcan @empty {{ __('No data found') }} @endforelse @endforeach
{{ $this->supplierPayments->links() }}