#INV-{{ $data->id }} Date:{{ date('d F Y', strtotime($data->created_at)) }}

Invoice To:

{{ $data->user->name ?? '' }}

Address : {{ isset($data->orderAddress) ? (!empty($data->orderAddress->location) ? $data->orderAddress->location : '' ) : '' }}

Phone : {{ $data->user->phone ?? '' }}

@php $i = 1; $total = 0; $subtotal = 0; @endphp @foreach ($data->orderItem as $item) @php $subtotal += ($item->price * $item->qty); @endphp @endforeach
# Product Name Cost Item Quantity Quantity status Total
{{ $i++ }} {{ $item->products->name }} Rs {{ $item->price }} {{ $item->item_qty }} {{ $item->qty }} {{ $item->status == 'A' ? 'Accepted' : ($item->status == 'R' ? 'Rejected' : '-') }} Rs {{ ($item->price * $item->qty) ?? '-' }}
@isset($data->surcharge) @endisset @if(isset($data->tax) && ($data->tax > 0)) @php $taxDataTax = json_decode($data->tax_id_1,true); $taxDataTax1 = json_decode($data->tax_id_2,true); @endphp @if(!empty($taxDataTax)) @foreach($taxDataTax as $key => $value) @endforeach @endif @if(!empty($taxDataTax1)) @foreach($taxDataTax1 as $key => $value) @endforeach @endif @endif @isset($data->coupon) @endisset @isset($data->delivery_charges) @endisset @isset($data->packing_fee) @endisset @isset($data->tip_amount) @endisset
SUBTOTAL : Rs. {{ $subtotal }}
SURCHARGE : Rs. {{ $data->surcharge ?? '' }}
{{$key}} : Rs. {{ $value }}
{{$key}} : Rs. {{ $value }}
COUPON : {{ $data->coupon->coupon_code }} (-) Rs. {{ $data->coupon->discounted_price }}
DELIVERY CHARGE : Rs. {{ $data->delivery_charges ?? '' }}
PACKING FEE : Rs. {{ $data->packing_fee ?? '' }}
TIP AMOUNT : Rs. {{ $data->tip_amount ?? '' }}
PAYMENT MODE : {{ isset($data->order_type) ? ($data->order_type == 'O' ? 'Online' : ($data->order_type == 'C' ? 'COD' : '')) : '' }}
GRAND TOTAL : Rs {{ $data->grand_total }}