@foreach ($profile as $pic) @if ($invoice->branch == $pic->branch)

{{ $pic->name }}

{{ $pic->address }}
{{ $pic->phno1 ? $pic->phno1 : $pic->phno2 }}

@endif @endforeach
Sale ID: {{ $invoice->invoice_no }} 02-09-2025

Employee: {{ auth()->user()->name }}
Customer: {{ $invoice->customer_name }}
Phone: {{ $invoice->phno }}
Address: {{ $invoice->address }}

@foreach ($invoices as $invoice) @foreach ($invoice->sells as $key => $sell) @endforeach @endforeach @foreach ($payment_methods as $index => $payment_method) @endforeach
Item Name. Qty Price Discounts Total
{{ $sell->part_number }} {{ $sell->product_qty }} @if ($invoice->sale_price_category == 'Default') @if ($invoice->type == 'Whole Sale') {{ number_format($sell->product_price) }} @else {{ number_format($sell->retail_price) }} @endif @elseif ($invoice->sale_price_category == 'Whole Sale') {{ number_format($sell->product_price) }} @elseif ($invoice->sale_price_category == 'Retail') {{ number_format($sell->retail_price) }} @else {{ number_format($sell->retail_price) }} @endif {{ number_format($sell->discount) }} @if ($invoice->sale_price_category == 'Default') @if ($invoice->type == 'Whole Sale') {{ number_format($sell->product_price * $sell->product_qty - $sell->discount) }} @else {{ number_format($sell->retail_price * $sell->product_qty - $sell->discount) }} @endif @elseif ($invoice->sale_price_category == 'Whole Sale') {{ number_format($sell->product_price * $sell->product_qty - $sell->discount) }} @elseif ($invoice->sale_price_category == 'Retail') {{ number_format($sell->retail_price * $sell->product_qty - $sell->discount) }} @else {{ number_format($sell->retail_price * $sell->product_qty - $sell->discount) }} @endif
Total {{ number_format($invoice->total ?? 0) }}
@if ($index == 0) Payment - @endif {{ $payment_method->payment_method }} {{ number_format($payment_method->payment_amount ?? 0) }}
Change Due {{ number_format($invoice->remain_balance ?? 0) }}