@extends('layouts.app') @section('title', 'Bandwidth Upgrade Requests') @section('page-title', 'Bandwidth Upgrade Requests') @section('content')
@if(session('success')) @endif @if(session('error')) @endif
Bandwidth Upgrade Requests
Invoices with bandwidth upgrade requests
{{ $totalUpgradeRequests ?? 0 }}
Total Requests
@if(($invoiceGroups ?? collect())->isEmpty())
No Bandwidth Upgrade Requests

There are no bandwidth upgrade requests in the system.

@else
@foreach($invoiceGroups as $invoiceId => $logs) @php $firstLog = $logs->first(); $invoice = $firstLog->salesInvoice ?? $firstLog->salesInvoiceItem->salesInvoice ?? null; $customer = $firstLog->customer ?? ($invoice ? $invoice->customer : null); $uniqueId = 'invoice-' . $invoiceId; $invoiceNumber = $invoice ? ($invoice->invoice_no ?? 'N/A') : 'No Invoice'; $invoiceDate = $invoice && $invoice->invoice_date ? $invoice->invoice_date->format('M d, Y') : ''; @endphp @endforeach
Invoice Invoice Date Customer Total Items Action
{{ $invoiceNumber }} @if($invoiceDate) {{ $invoiceDate }} @else - @endif @if($customer) {{ $customer->company_name ?? $customer->name ?? 'N/A' }} @if($customer->email)
{{ $customer->email }} @endif @else N/A @endif
{{ $logs->count() }} item(s) Upgrade Invoice
@endif
@endsection @section('styles') @endsection @section('scripts') @endsection