Yummytime
#{!! $orderInvoice->invoice_no !!}
{!! dateFormat($orderInvoice->created_at , 'd.m.Y') !!}
{!! $orderInvoice->store_company_name ?? '' !!}
{!! $orderInvoice->address ?? '' !!}
{!! $orderInvoice->email ?? '' !!}
{!! $orderInvoice->org_number ?? '' !!}
{!! $orderInvoice->contact_number ?? '' !!}
{!! $orderInvoice->company_name ?? '' !!}
{!! $orderInvoice->company_address ?? '' !!}
{!! $orderInvoice->invoice_email ?? '' !!}
{!! $orderInvoice->organization_no ?? '' !!}
@php $invoiceTotal = 0; $invoiceMVATotal = 0; @endphp @foreach($data as $order) @php $orderNumber = orderNumber($order->order_from, $order->order_number, $order->order_prefix); @endphp @php $invoiceTotal += $order->purchase_amount; $invoiceMVATotal += $order->total_tax ?? 0; @endphp {{----}} @endforeach {{----}} {{----}} {{----}} {{----}} {{----}}
{!! __('order_invoice.sr_no') !!} {!! __('order_invoice.description') !!} {!! __('order_invoice.qty') !!} {!! __('order_invoice.price') !!} {!! __('order_invoice.amount') !!}
{!! __('order_invoice.order_no') !!}: #{!! $orderNumber !!} - {!! date_format( $order->created_at , 'd.m.Y' ) !!} {!! __('order_invoice.emp_code') !!}: {!! $order->employee_no !!}     {!! __('order_invoice.emp_name') !!}: {!! $order->employee_name !!}     {!! __('order_invoice.our_ref') !!}: {!! in_array($order->order_from,['web','android','IOS']) ? __('order_invoice.online_order') : $order->emp_name !!}
{!! $order->id !!} {!! __('gift_card.gift_card') !!} 1 {{ numberFormat($order->purchase_amount,true,false) }} {!! numberFormat($order->purchase_amount,true,false) !!}
{!! __('order_invoice.sum') !!} ({!! __('order_invoice.order_no') !!} #{!! $orderNumber !!}) {!! numberFormat($order->purchase_amount,true,false)!!}
{!! __('order_invoice.mva') !!} {!! numberFormat($order->total_tax,true,false)!!}
{!! __('order_invoice.sum') !!} {!! numberFormat($invoiceTotal,true,false) !!}
{!! __('order_invoice.mva') !!}{!! numberFormat($invoiceMVATotal,true,false) !!}
{!! __('order_invoice.total') !!} {!! numberFormat($invoiceTotal+$invoiceMVATotal,true,false) !!}