@extends('operations.layout.mainlayout') @section('content') @php $global_html = $global_symbol['is_html'] ?? false; @endphp

Subscription

# Invoices

{{ $totalInvoices }}

Total Invoices Amount

{{ number_format($totalInvoiceAmount, 2) }} @if($global_html && isset($global_symbol['currency'])) {!! $global_symbol['currency'] !!} @else {{ $global_symbol['currency'] ?? 'SAR' }} @endif

Total Payments

{{ number_format($totalPayments, 2) }} @if($global_html && isset($global_symbol['currency'])) {!! $global_symbol['currency'] !!} @else {{ $global_symbol['currency'] ?? 'SAR' }} @endif

Balance

{{ number_format($balance, 2) }} @if($global_html && isset($global_symbol['currency'])) {!! $global_symbol['currency'] !!} @else {{ $global_symbol['currency'] ?? 'SAR' }} @endif

Invoices

@forelse($invoices as $invoice) @empty @endforelse
# Invoice No Invoice Date Invoice Period Amount ( @if($global_html && isset($global_symbol['currency'])) {!! $global_symbol['currency'] !!} @else {{ $global_symbol['currency'] ?? 'SAR' }} @endif ) Payments (@if($global_html && isset($global_symbol['currency'])) {!! $global_symbol['currency'] !!} @else {{ $global_symbol['currency'] ?? 'SAR' }} @endif ) Status Sadad Number Invoice File
{{ $loop->iteration }} {{ $invoice->INVOICE_NO }} {{ $invoice->INVOICE_DATE }} {{ $invoice->FROM_DATE }} to {{ $invoice->TO_DATE }} {{ number_format($invoice->INVOICE_AMOUNT, 2) }} {{ number_format($invoice->PAYMENTS_AMOUNT, 2) }} @switch($invoice->INVOICE_STATUS) @case("Paid") {{ $invoice->INVOICE_STATUS }} @break @case("Partially Paid") {{ $invoice->INVOICE_STATUS }} @break @default {{ $invoice->INVOICE_STATUS }} @endswitch {{ $invoice->SADAD_NUMBER ?? 'N/A' }} @if ($invoice->INVOICE_FILE) Download @else N/A @endif
No invoices found.
@endsection