@extends('Admin.layout') @section('content')
{{-- PAGE HEADER --}}
{{-- LEFT SIDE --}}

Bill {{ $bill->bill_no }}

{{-- RIGHT SIDE --}}
{{-- BILL CARD --}}
{{-- BILL HEADER --}}

JS Speaker

Vehicle Speaker & Audio

{{ $bill->bill_no }}

{{ $bill->created_at->timezone('Asia/Kolkata')->format('d M Y, h:i A') }}


{{-- CUSTOMER DETAILS --}}
Customer Name
{{ $bill->customer_name }}
Phone
{{ $bill->phone_no }}
Place
{{ $bill->place ?: '-' }}
Payment Status
{{ $bill->payment_status }}
{{-- ITEMS --}}
Items
@foreach ($bill->items as $index => $item) @endforeach
S.No Type Item Description Qty Price Total
{{ $index + 1 }} {{ $item->item_type }} {{ $item->item_name }} {{ $item->description ?: '-' }} @if ($item->item_type == 'Service') - @else {{ $item->quantity }} @endif ₹{{ number_format($item->price, 2) }} ₹{{ number_format($item->total, 2) }}
{{-- BILL SUMMARY --}}
{{-- PRODUCT TOTAL --}}
Product Total ₹{{ number_format($bill->subtotal - ($bill->service_charge ?? 0), 2) }}
{{-- SERVICE CHARGE --}}
Service Charge ₹{{ number_format($bill->service_charge ?? 0, 2) }}
{{-- ITEMS TOTAL --}}
Items Total ₹{{ number_format($bill->subtotal, 2) }}
{{-- DISCOUNT --}}
Discount ({{ number_format($bill->discount_percentage ?? 0, 2) }}%) ₹{{ number_format($bill->discount_amount ?? 0, 2) }}

{{-- FINAL AMOUNT --}}
Final Amount ₹{{ number_format($bill->total, 2) }}
@endsection