Real IP Bill Management
| # | Manager | POP | IP Address | Start Date | Status | Per Month (৳) | Billed Till Now (৳) | Paid (৳) | Due (৳) | Action |
|---|---|---|---|---|---|---|---|---|---|---|
| Total | {{ number_format($grandPerMonth, 2) }} | {{ number_format($grandAmount, 2) }} | {{ number_format($grandPaid, 2) }} | {{ number_format($grandRemaining, 2) }} | ||||||
| {{ $item->id }} | {{ $item->reseller->name_with_type ?? '—' }} | {{ $item->pop->popname ?? '—' }} | {{ $item->ip_address }} |
{{ $item->billing_month ? $item->billing_month->format('d M Y') : '—' }}
@if ($item->end_month)
{{ $item->is_stopped ? 'Stopped after' : 'Ends' }} {{ $item->end_month->format('d M Y') }} @else Recurring @endif @if ($item->description) {{ $item->description }} @endif Added by: {{ $item->createdBy->name ?? '—' }} |
@include('partials.approval-status', ['item' => $item]) @if ($item->status === 'approved') {{-- Only a stopped bill is truly finished; a running one charges again next month. --}} @if ($billable > 0 && $remaining <= 0) {{ $item->is_stopped ? 'Fully Paid' : 'Up to date' }} @endif @endif @include('partials.approval-comment', ['item' => $item]) | {{ number_format($item->amount, 2) }} |
@if ($billable > 0)
{{ number_format($billable, 2) }}
{{-- First / last month are charged by days, so this is a month count, not a multiplier. --}}
{{ $item->elapsed_periods }} month(s) (till {{ $item->current_period_label }}) @else — @endif |
@if ($totalPaid > 0) {{ number_format($totalPaid, 2) }} @else — @endif | @if ($remaining > 0) {{ number_format($remaining, 2) }} @elseif ($billable > 0) Paid @else — @endif | {{-- Edit stays available after approval: it is how a running bill gets its End Date set to stop the monthly charge. Touching an approved record needs the extra *-approved permission. --}} @php $isApproved = $item->status === 'approved'; $canEditRow = auth()->user()->can('real-ip-bill-edit') && (!$isApproved || auth()->user()->can('real-ip-bill-edit-approved')); $canDeleteRow = auth()->user()->can('real-ip-bill-delete') && (!$isApproved || auth()->user()->can('real-ip-bill-delete-approved')); @endphp @if ($canEditRow) Edit @endif @can('real-ip-bill-approve') @include('partials.approval-decision-buttons', [ 'item' => $item, 'url' => route('real-ip-bill.approve', $item->id), 'label' => 'Real IP Bill', ]) @endcan @if ($canDeleteRow) @endif @if ($item->status === 'approved') @can('real-ip-bill-payment') @if ($remaining > 0) @endif @if ($totalPaid > 0) @endif @endcan @endif @can('real-ip-bill-history') History @endcan |