@extends('layouts.app') @section('title', 'View Bandwidth Log - ISP ERP System') @section('page-title', 'View Bandwidth Log') @section('content')
Bandwidth log details and information
| ID | Sales Invoice Item | Previous Bandwidth | Requested Bandwidth | Log Date | End Date | Status | Approval | |
|---|---|---|---|---|---|---|---|---|
| @if($cl->approval_status === 'pending') @endif | {{ $cl->id }} |
{{ $cl->salesInvoiceItem->item_name ?? 'N/A' }}
@if($cl->salesInvoiceItem && $cl->salesInvoiceItem->salesInvoice)
Invoice: {{ $cl->salesInvoiceItem->salesInvoice->invoice_number ?? 'N/A' }} @endif |
@php $prevText = null; if ($cl->salesInvoiceItem) { $unit = strtolower($cl->salesInvoiceItem->unit ?? ''); $qty = $cl->salesInvoiceItem->quantity ?? null; if ($qty && ($unit === 'mbps' || str_contains($unit, 'mbps'))) { $prevText = number_format((float)$qty, 2) . ' Mbps'; } } @endphp {{ $prevText ?? 'N/A' }} |
@if($cl->download_speed_mbps)
{{ number_format($cl->download_speed_mbps, 2) }} Mbps
@else
N/A
@endif
@if($cl->approval_status === 'pending')
|
{{ $cl->log_date ? $cl->log_date->format('M d, Y H:i') : '-' }} | {{ $cl->end_date ? $cl->end_date->format('M d, Y H:i') : '-' }} | {{ ucfirst($cl->status) }} | {{ ucfirst($cl->approval_status) }} |