@extends('layouts.app') @section('content')
@foreach (['Department Copy', 'Customer Copy'] as $index => $copyType)
@if($index === 1)
Tear Here
@endif
@if($printSetting->logo_path) Store Logo @endif

{{ $printSetting->title }}

{{ $printSetting->address }}

Phone: {{ $printSetting->phone }}

{{ $copyType }}

@php $details = [ 'Bill ID' => $bill->id, 'Customer Name' => $bill->customer_name ?? 'N/A', 'Date' => $bill->date, 'Payment Type' => $bill->payment, 'Total Amount' => 'Rs. ' . $bill->total_amount, 'Remarks' => $bill->remarks ?? 'N/A', 'Price Type' => $bill->price_type ?? 'N/A', ]; @endphp @foreach($details as $label => $value)
{{ $label }}:
{{ $value }}
@endforeach

Bill Items

@forelse ($bill->outsideItems ?? [] as $i => $item) @empty @endforelse
# Product Qty Unit Price Total
{{ $i + 1 }} {{ $item->product_name }} {{-- Changed from product->name to just name --}} {{ $item->qty }} Rs. {{ $item->price }} Rs. {{ $item->qty * $item->price }}
No items found

Note: {{ $printSetting->footer_note }}

{{ $printSetting->goodbye_message }}

Software developed by Next Steps Sols Pvt. Ltd.

🌐 www.nextstepsols.com

📞 Cell: 0332-0679987

@endforeach
@endsection