@extends('layouts.business.pdf.pdf_layout') @section('pdf_title')
@include('business::print.header')

{{ __('Supplier Due Report List') }}

@endsection @section('pdf_content') @foreach ($parties as $party) @if ($party->type == 'Retailer') @else @endif @endforeach @if ($parties->count() > 0) @endif
{{ __('Name') }} {{ __('Phone') }} {{ __('Type') }} {{ __('Credit Limit') }} {{ __('Due Amount') }}
{{ $party->name }} {{ $party->phone }} {{ __('Customer') }} {{ $party->type }} {{ currency_format($party->credit_limit, currency: business_currency()) }} {{ currency_format($party->due, currency: business_currency()) }}
{{ __('Total') }} {{ currency_format($parties->sum('credit_limit'), currency: business_currency()) }} {{ currency_format($parties->sum('due'), currency: business_currency()) }}
@endsection