@extends('layouts.admin') @section('css') @vite(['node_modules/choices.js/public/assets/styles/choices.min.css']) @endsection @section('content')
This booking was created by an agent and is waiting for review.
Reason: {{ $booking->rejection_reason ?? 'No reason provided.' }}
Rejected by {{ $booking->approvedBy->name ?? 'Admin' }} on {{ $booking->approved_at->format('d M, Y H:i') }}
This booking was approved and is now active.
@if($booking->approval_reason)Note: {{ $booking->approval_reason }}
@endifApproved by {{ $booking->approvedBy->name ?? 'Admin' }} on {{ $booking->approved_at->format('d M, Y H:i') }}
This booking has been cancelled and the plot has been released.
| Customer: | {{ $booking->customer->name }} |
| Customer Code: | {{ $booking->customer->customer_code }} |
| Agent: | {{ $booking->agent->name }} |
| Current Rank: | {{ $booking->agent->rank->name }} ({{ $booking->agent->rank->abbreviation }}) |
| Rank at Booking: | {{ $booking->agentRank->name ?? 'N/A' }} ({{ $booking->agentRank->abbreviation ?? 'N/A' }}) |
| Project: | {{ $booking->project->name }} |
| Plot Number: | {{ $booking->plot->plot_number }} |
| Total Area: | {{ number_format($booking->total_area, 2) }} sqft |
| Rate: | ₹ {{ number_format($booking->price_per_sqft, 2) }} / sqft |
Total Amount
Booking Deposit
Remaining Balance
Status
@if($booking->status === 'active') Active @elseif($booking->status === 'completed') Completed @else Cancelled @endif| # | Due Date | Amount | Sqft | Status | Paid Date | Reference | Action |
|---|---|---|---|---|---|---|---|
| {{ $emi->emi_number }} | {{ $emi->due_date->format('d M, Y') }} | ₹ {{ number_format($emi->amount, 2) }} | {{ number_format((float)$emi->sqft_portion, 2) }} | @if($emi->status === 'paid') Paid @elseif($emi->status === 'pending') Pending @elseif($emi->status === 'overdue') Overdue @else Cancelled @endif | {{ $emi->paid_date ? $emi->paid_date->format('d M, Y') : '-' }} | {{ $emi->payment_reference ?? '-' }} | @if($emi->status !== 'paid' && $emi->status !== 'cancelled' && $booking->status === 'active') @endif |
| Agent Name | Rank | Role | Pts / sqft | Comm / EMI | Total Comm |
|---|---|---|---|---|---|
| {{ $item['agent_name'] }} | {{ $item['rank'] }} | {{ $item['role'] }} | {{ number_format($item['points_per_sf'], 2) }} | ₹ {{ number_format($item['commission_per_emi'], 2) }} | ₹ {{ number_format($item['total_commission'], 2) }} |
{{ $booking->createdBy->name ?? 'System' }}
{{ $booking->created_at->format('d M, Y H:i') }}
{{ $booking->payment_mode }} ({{ $booking->payment_mode === 'cash' ? 'PV' : 'BV' }})
{{ $booking->notes }}