@extends('Admin.layouts') @section('content') {{-- PAGE HEADER --}}
Service Details
{{-- CUSTOMER PROFILE --}}
{{ $bill->customer_name }}
Bill Number
{{ $bill->bill_number }}
{{ $bill->bill_date?->format("d M Y") ?? "-" }}
{{-- CUSTOMER INFORMATION --}}
Customer Information
Full Name {{ $bill->customer_name }}
Mobile Number {{ $bill->mobile_number }}
Place {{ $bill->place }}
Status {{ $bill->service_status }}
{{-- VEHICLE INFORMATION --}}
Vehicle Information
Vehicle Number {{ $bill->vehicle_number }}
Vehicle Brand {{ $bill->vehicle_brand }}
Vehicle Model {{ $bill->vehicle_model }}
Service Date {{ $bill->bill_date?->format("d M Y") ?? "-" }}
Chassis Number {{ $bill->chassis_number ?: "-" }}
Engine Number {{ $bill->engine_number ?: "-" }}
{{-- SERVICES RECEIVED --}}
Services Received
{{ $serviceRows->count() }} Services
@forelse ($serviceRows as $service)
{{ $service['description'] ?: '-' }}
@empty
No services are listed on this bill.
@endforelse

Service Remarks

{{ $bill->remarks ?: '-' }}

{{-- VEHICLE IMAGES --}}
Vehicle Images
@forelse (($bill->image_paths ?? []) as $imagePath) @php $imageDisk = \Illuminate\Support\Facades\Storage::disk('public'); $resolvedImagePath = $imageDisk->exists($imagePath) ? $imagePath : 'product image/' . basename($imagePath); $encodedImagePath = implode('/', array_map('rawurlencode', explode('/', $resolvedImagePath))); $imageUrl = url('storage/' . $encodedImagePath); @endphp
Vehicle image
@empty
No vehicle images were uploaded for this bill.
@endforelse
{{-- SERVICES USED --}}
Services Done
{{-- Page Length --}}
{{-- Search --}}
SNO DESCRIPTION AMOUNT (₹)
Total Amount ₹{{ number_format((float) $serviceTotal, 2) }}
{{-- SPARE PARTS --}}
Spare Parts Used
{{-- Page Length --}}
{{-- Search --}}
DESCRIPTION QUANTITY RATE (₹) AMOUNT (₹)
Total Amount: ₹{{ number_format((float) $productTotal, 2) }}
{{-- BILLING SUMMARY --}}
Billing Summary
Subtotal ₹{{ number_format((float) $bill->subtotal, 2) }}
Discount ({{ number_format((float) $bill->discount, 2) }}%) ₹{{ number_format((float) $bill->subtotal * (float) $bill->discount / 100, 2) }}
GST ({{ number_format((float) $bill->gst_rate, 2) }}%) ₹{{ number_format((float) $bill->gst_amount, 2) }}

Grand Total ₹{{ number_format((float) $bill->total_amount, 2) }}
{{-- PAYMENT INFORMATION --}}
Payment Information
Payment Status {{ (float) $bill->balance_amount <= 0 && (float) $bill->amount_received > 0 ? 'Paid' : 'Pending' }}
Payment Method {{ $bill->payment_method ?: '-' }}
Amount Received ₹{{ number_format((float) $bill->amount_received, 2) }}

Additional Remarks

{{ $bill->remarks ?: '-' }}

{{-- BOTTOM BUTTONS --}}
Go Back
{{-- jQuery and DataTables --}} @endsection