@extends('layouts.admin') @section('title', 'Billing Management') @section('content')

Billing Management

Manage all billing records

{{-- Add New Billing --}}
@if(request()->hasAny(['search', 'payment_method', 'date_from', 'date_to'])) Clear @endif
@forelse($billings as $billing) @empty @endforelse
Customer Room Amount to Pay Amount Paid Remaining Reference Actions
{{ $billing->booking->full_name }}
{{ $billing->booking->email }}
@if($billing->booking->room->room_number)
Room #{{ $billing->booking->room->room_number }}
@else
N/A
@endif
${{ number_format($billing->amount_to_pay ?? 0, 2) }}
${{ number_format($billing->amount_paid ?? 0, 2) }}
@php $remaining = ($billing->amount_to_pay ?? 0) - ($billing->amount_paid ?? 0); @endphp
${{ number_format($remaining, 2) }}
{{ $billing->reference_number ?? '-' }}

No billing records found

Create a billing record to get started

{{-- Previous Page Link --}} @if ($billings->onFirstPage()) @else @endif {{-- Page Info --}} Showing {{ $billings->firstItem() ?? 0 }}-{{ $billings->lastItem() ?? 0 }} of {{ $billings->total() }} {{ $billings->total() == 1 ? 'billing' : 'billings' }} {{-- Next Page Link --}} @if ($billings->hasMorePages()) @else @endif
@include('admin.billings.modals') @endsection