@extends('layouts/layoutMaster') @section('title', $page_title) @section('vendor-style') @endsection @section('page-style') @endsection @section('vendor-script') @endsection @section('content')
{{-- secondary --}}
@if (isset(session()->get('active_company')['logo']))
Image
@else
@endif
{{ session()->get('active_company')['roc_no'] }}
{{ session()->get('active_company')['group_company'] }}
Start Date
Actions
{{-- primary --}}
logo
{{ $statement_type }}
TO
{{ Str::upper($consumer['name']) }}
{{ Str::upper($consumer['address']) }}
{{ Str::upper($consumer['state']) }}
{{ Str::upper($consumer['country']) }}
DATE
{{ $statement_date }}
TOTAL DUE ENCLOSED
{{ number_format($statement_total_due, 2, '.', ',') }}
@php $nope = 0; @endphp @forelse ($statement_data as $sd) @php if (floatval($sd->customer_outstanding) == 0 && count($sd->transactions) == 0) { $nope++; continue; } @endphp
@php $bal = $sd->balance_forward; // bf_end_date // $bfDate = date_format( // date_sub( // date_create($cod), // date_interval_create_from_date_string('1 days'), // ), // 'd.m.Y', // ); @endphp @forelse ($sd->transactions as $tx) @php $bal += $tx->item_amount; @endphp @empty @endforelse
Date Description Amount Balance
{{ date_format($bf_end_date, 'd.m.Y') }} Balance Forward {{ number_format($bal, 2, '.', ',') }}
{{ date_format(date_create($tx->item_date), 'd.m.Y') }} item_type/$tx->uuid") }}">{{ $tx->item_ref_number }} {{ number_format($tx->item_amount, 2, '.', ',') }} {{ number_format($bal, 2, '.', ',') }}
{{ '--' }}
Current
Due
1-30 Days
Past Due
31-60 Days
Past Due
61-90 Days
Past Due
90+ Days
Past Due
Amount
Due
{{ number_format($sd->aging->current_due ?? 0, 2, '.', ',') }} {{ number_format($sd->aging->to_30_due ?? 0, 2, '.', ',') }} {{ number_format($sd->aging->to_60_due ?? 0, 2, '.', ',') }} {{ number_format($sd->aging->to_90_due ?? 0, 2, '.', ',') }} {{ number_format($sd->aging->past_90_due ?? 0, 2, '.', ',') }} {{ $sd->customer_currency }} {{ number_format($sd->customer_outstanding, 2, '.', ',') }}
@empty
No statements to display
@endforelse {{-- @foreach ($statement_data as $sd) @endforeach --}}
@endsection @section('page-script') @endsection @include('finances.modals.op-review')