{{ __('Quotes & Orders Management') }}
Advanced Filters
Quotes & Orders Table
| Order/Quote # | Customer | Job Type | Total Amount | Payment | Status | Actions | |
|---|---|---|---|---|---|---|---|
|
@if($quote->order_number)
#{{ $quote->order_number }}
@elseif($quote->quote_number)
#{{ $quote->quote_number }}
@endif
{{ $quote->created_at->format('M d, Y') }}
|
@if($quote->user)
{{ $quote->user->name }}
{{ $quote->user->email }}
@elseif($quote->booking)
{{ $quote->booking->name }}
{{ $quote->booking->email }}
@else
N/A
@endif
|
@php $jobType = $quote->job_type ?? ($quote->raw_data['job_type'] ?? null); $jobTypeColors = [ 'local_job' => 'primary', 'interstate_job' => 'info', ]; $jobTypeColor = $jobTypeColors[$jobType] ?? 'secondary'; @endphp @if($jobType) {{ ucfirst(str_replace('_', ' ', $jobType)) }} @else N/A @endif |
${{ number_format($quote->total_cost, 2) }}
|
@if($quote->deposit_amount || $quote->remaining_amount)
@if($quote->deposit_amount)
Deposit: ${{ number_format($quote->deposit_amount, 2) }}
@if($quote->deposit_payment_status === 'succeeded')
Paid
@elseif($quote->deposit_payment_status === 'pending')
Pending
@endif
@endif
@if($quote->remaining_amount && $quote->remaining_amount > 0)
Remaining: ${{ number_format($quote->remaining_amount, 2) }}
@if($quote->remaining_payment_status === 'succeeded')
Paid
@elseif($quote->remaining_payment_status === 'pending')
Pending
@endif
@else
Fully Paid
@endif
@else
No payment
@endif
|
@php
$statusColors = [
'pending' => ['bg-warning', 'Pending'],
'approved' => ['bg-success', 'Approved'],
'rejected' => ['bg-danger', 'Rejected']
];
$status = $statusColors[$quote->status] ?? ['bg-secondary', ucfirst($quote->status)];
$typeColors = [
'quote' => ['bg-primary', 'Quote'],
'estimate' => ['bg-info', 'Estimate'],
'order' => ['bg-success', 'Order']
];
$type = $typeColors[$quote->quote_type] ?? ['bg-secondary', ucfirst($quote->quote_type)];
@endphp
{{ $status[1] }}
{{ $type[1] }}
|
|
|
| No quotes/orders found | |||||||
| Order/Quote # | Customer | Job Type | Total Amount | Payment | Status | Actions |
Showing {{ $quotes->firstItem() ?? 0 }} to {{ $quotes->lastItem() ?? 0 }} of {{ $quotes->total() }} entries
@if($quotes->hasPages())
{{ $quotes->links('pagination::bootstrap-4') }}
@endif