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

{{ $pic->name }}

{{ $pic->address }}
{{ $pic->phno1 }}, {{ $pic->phno2 }}

@endif @endforeach {{--

Invoice

--}}

Invoice to

Name :  {{ $invoice->customer_name }}
Sale Return :  {{ $invoice->balance_due }}


{{ $invoice->invoice_no }}
{{ $invoice->invoice_date }}

Information

Phone Number Address Customer Type
{{ $invoice->phno }} {{ $invoice->address }} {{ $invoice->type }}
@php $sellsGrouped = $sells->groupBy('exp_date'); $itemDiscount = 0; $no = 1; @endphp @foreach ($sells as $sell) @php $no++; $itemDiscount += $sell->discount; @endphp @endforeach @foreach ($payment_methods as $index => $payment_method) @if ($index == 0) @else @endif @endforeach
{{ trans('No') }} {{ trans('Item Name') }} {{ trans('Descriptions') }} {{ trans('Qty') }} {{ trans('Unit') }} {{ trans('Price') }} {{ trans('Discounts') }} {{ trans('Total') }}
{{ $no }} {{ $sell->part_number }} {{ $sell->description }} {{ $sell->product_qty }} {{ $sell->unit }} @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) }} @else {{ number_format($sell->retail_price * $sell->product_qty) }} @endif @elseif ($invoice->sale_price_category == 'Whole Sale') {{ number_format($sell->product_price * $sell->product_qty) }} @elseif ($invoice->sale_price_category == 'Retail') {{ number_format($sell->retail_price * $sell->product_qty) }} @else {{ number_format($sell->retail_price * $sell->product_qty) }} @endif
Sub Total {{ number_format($invoice->sub_total) }}
Total {{ number_format($invoice->total) }}
Payment Method - {{ $payment_method->payment_method }}                                {{ $payment_method->payment_method }} {{ number_format($payment_method->payment_amount) }}
Deposit {{ number_format($invoice->deposit) }}
Remaining Balance {{ number_format($invoice->remain_balance) }}


Remark - {{ $invoice->remark }}
{{-- Print --}}
Print