@extends('admin.layouts.main') @section('title') {{ trans('finance.due_payments') }} @endsection @section('content')
@include("admin.common.sidebar")

Due Payments

@if(count($duePayments) > 0) @endif
@if(count($duePayments) > 0)
@foreach($totals as $key => $total)

ST: {{ number_format($total['subTotal'],2) }}

@if(isset($total['tax'])) @foreach($total['tax'] as $key1 => $tax) @if($tax != 0)

{{ $key1 }}: {{ number_format($tax, 2) }}

@endif @endforeach @endif

GT: {{ number_format($total['grandTotal'],2) }}

@endforeach

ST: {{ number_format($grandTotal['subTotal'],2) }}

@if(isset($grandTotal['tax'])) @foreach($grandTotal['tax'] as $key1 => $tax) @if($tax != 0)

{{ $key1 }}: {{ number_format($tax, 2) }}

@endif @endforeach @endif

GT: {{ number_format($grandTotal['grandTotal'],2) }}

@endif @if(count($duePayments))
@foreach($duePayments as $payment) @if($payment->company->name) @else @endif @if($payment->company && $payment->company->countries && $payment->company->countries->name) @else @endif @if($payment->company && $payment->company->states && $payment->company->states->name) @else @endif @if($payment->company && $payment->company->cities && $payment->company->cities->name) @else @endif @endforeach
Invoice Id Company Name Contact Name Contact Number Country State City Due Date Due Amount ({{ $franchiseCurrency }}) Action
{{ $payment->ti_serial_number }} @if ($payment->currency_conversion_flag == 1) (Euro) @endif{{ $payment->company->name }}-{{ $payment->contact->first_name }} {{ $payment->contact->last_name }} {{ ($payment->contact->mobile) ? $payment->contact->mobile : '-' }}{{ $payment->company->countries->name }}-{{ $payment->company->states->name }}-{{ $payment->company->cities->name }}-{{ $payment->tax_due_date_formatted_full }}

ST: {{ number_format($payment->total_amount_converted,2) }}

@foreach($payment->taxes as $tax) @php $countTax = ($tax->tax_value * $payment->total_amount_converted) / 100; @endphp @if($countTax != 0)

{{ $tax->tax_value }}% @if($tax->tax_title == 'Withholding Tax') WHT: @else{{ $tax->tax_title }}:@endif {{ number_format(($tax->tax_value * $payment->total_amount_converted) / 100,2) }}

@endif @endforeach

GT: {{ number_format($payment->sub_total_amount_converted,2) }}

@permission('tax-invoice-write') monetization_on @endpermission @permission('send-finance-mail-write') notifications @endpermission @permission('tax-invoice-write') edit @endpermission @permission('tax-invoice-read') session('panel'),'id' => $payment->id]) }} title="View Tax Invoice" class="btn btn-view" target="_blank"> remove_red_eye @endpermission
@else
@endif
@endsection @push('pageJs') @endpush @push('pageCss') @endpush @push('pageModals') @include('admin.modules.finance.modals.invoice_payment') @include('admin.modules.finance.modals.payment_reminder') @endpush