@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 }}


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

Information

Phone Number Address Customer Type
{{ $invoice->phno }} {{ $invoice->address }} {{ $invoice->type }}
@php $no = 1; @endphp @foreach ($sells as $sell) @if ($sell->product_price) @elseif($sell->retail_price) @endif @php $no++; @endphp @endforeach
{{ trans('No') }} {{ trans('Item Name') }} {{ trans('Description') }} {{ trans('Qty') }} {{ trans('Purchase Price') }} {{ trans('Sale Price') }} {{ trans('Unit') }} {{ trans('Total Purchase') }} {{ trans('Total Sale') }}
{{ $no }} {{ $sell->part_number }} {{ $sell->description }} {{ $sell->product_qty }} {{ $sell->buy_price }}{{ $sell->product_price }}{{ $sell->retail_price }}{{ $sell->unit }} {{ $sell->product_qty * $sell->buy_price }} {{ $sell->product_qty * ($sell->product_price ?? $sell->retail_price) }}
Total Purchase {{ number_format($invoice->total_buy_price) }}
Sub Total {{ number_format($invoice->sub_total) }}
Discount {{ number_format($invoice->discount_total) }}
Total Sale {{ number_format($invoice->total) }}
Deposit {{ number_format($invoice->deposit) }}
Remaining Balance {{ number_format($invoice->remain_balance) }}


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