-
@foreach($errors->all() as $error)
- {{ $error }} @endforeach
New Instant Booking
{{ $bookings->total() }} Walk-in Bookings
| # | Unit | Client | Account | Payment Plan | Amount | Mode | Date | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} |
Unit {{ $b->plot_number }}
{{ $b->plot_type }}{{ $b->area ?
' · '.$b->area.' sqft' : '' }}
|
{{ $b->client_name ?: $b->user?->name ?: '—'
}}
{{ $b->client_phone ?:
$b->user?->phone }}
@if(!$b->user_id)
Walk-in
@endif
|
@if($b->user)
{{ $b->user->name }}
{{ $b->user->email }}
@else
No
account
@endif
|
@if($b->paymentPlan)
{{ $b->paymentPlan->name
}}
@if($hasMs)
@php
$msTotal = $ms->count();
$msPaidCnt = $msPaid->count();
$msPct = $msTotal > 0 ? round($msPaidCnt/$msTotal*100) : 0;
@endphp
{{ $msPaidCnt }}/{{ $msTotal }} paid
@if($msOverdue->isNotEmpty())
· {{
$msOverdue->count() }} overdue
@endif
|
@php
$collectedAmt = $hasMs && $msPaid->isNotEmpty()
? $msPaid->sum('total_with_tax')
: ($b->down_payment_amount ?: $b->price);
$totalAmt = $hasMs && $ms->isNotEmpty()
? $ms->sum('total_with_tax')
: ($b->total_amount ?: $b->price);
$overdueAmt = $msOverdue->sum('total_with_tax');
$pendingAmt = $msPending->sum('total_with_tax');
$outstandAmt = $pendingAmt + $overdueAmt;
@endphp
{{ $currency }}{{ number_format($collectedAmt, 2) }}
@if($collectedAmt >= $totalAmt)
✓ Paid
@endif
of {{ $currency }}{{
number_format($totalAmt, 2) }}
@if($outstandAmt > 0)
{{ $overdueAmt > 0 ? '⚠ ' : '' }}Due: {{ $currency }}{{
number_format($outstandAmt, 2) }}
@endif
|
@if($txn)
{{
$txn->mode }}
@else
—
@endif
@if($nextDue)
{{ $nextDue->status==='overdue' ? '⚠ Overdue' : '🕐 Due' }}
{{ \Carbon\Carbon::parse($nextDue->due_date)->format('d M Y') }}
@endif
|
{{ $b->created_at->format('d M Y') }} {{ $b->created_at->format('H:i') }} |
|
| No instant bookings yet. Use the form above to create one. | ||||||||