INVOICE

Peps Industries Pvt
#7/83,SFNO.192,Uthupalayam Road,
Arasur Post
Coimbatore 641407
0422 - 2360890, 3253006
accounts@pepsindia.com, sales@pepsindia.com
@php $PI_no = 1000 + $order->id; $invoice_date = Carbon\Carbon::parse($order->created_at)->format('d-m-Y'); @endphp
Invoice Number: {{$PI_no}}
Invoice Date: {{$invoice_date}}
bank_ref_num: {{$order->bank_ref_num}}
mihpayid: {{$order->mihpayid}}

ORDER ID : {{$order->order_id}}
@php $user_info = App\User::where('id',$order->user_id)->first(); $shipping_address_array = json_decode($order->shipping_address); $delivery_address_array = json_decode($order->billing_address); $shipping_address = ''; $delivery_address = ''; if(!empty($shipping_address_array)){ foreach ($shipping_address_array as $key => $shipping_address_value) { $shipping_address = $shipping_address. ' ' .$shipping_address_value.','; } }else{ $shipping_address = ''; } if(!empty($shipping_address_array)){ foreach ($delivery_address_array as $key => $delivery_address_value) { $delivery_address = $delivery_address. ' ' .$delivery_address_value.','; } }else{ $delivery_address= ''; } @endphp
NAME : {{!empty($user_info) ? $user_info->name : ""}}
EMAIL {{!empty($user_info) ? $user_info->email : ""}}
DATE {{$invoice_date}}


@if( count($productsInOrders) != 0 ) @php $sr = 1; @endphp @foreach( $productsInOrders as $productsInOrder ) {{-- --}} {{-- --}} @php $sr++; @endphp @endforeach
SR.NO. PRODUCT NAME PRODUCT SKU COLOR/SIZE QTY MRP PRICE DISCOUNT PRICE TOTAL
{{$sr}} @if($productsInOrder->getProductInfo) {{$productsInOrder->getProductInfo->title}} @endif {{$productsInOrder->sku}} @if($productsInOrder->getColorInfo) {{$productsInOrder->getColorInfo->color}} @endif
@if($productsInOrder->getSizeInfo) {{$productsInOrder->getSizeInfo->size}} @else {{$productsInOrder->size}} @endif
{{$productsInOrder->quantity}} ₹{{$productsInOrder->mrp_price}} ₹{{$productsInOrder->discount_price}}₹{{$productsInOrder->sub_total * $productsInOrder->quantity }}₹{{$productsInOrder->sub_total }}
SUBTOTAL ₹{{$order->without_discount_amount}}
COUPON DISCOUNT ₹{{$order->discount_amount}}
GRAND TOTAL ₹{{$order->total}}
@endif {{-- Order in offer starts --}} @if( count($productsInOffer) != 0 )
Products in offer
@php $sr = 1; @endphp @foreach( $productsInOffer as $productsInOrder ) {{-- --}} @php $sr++; @endphp @endforeach
SR.NO. PRODUCT NAME PRODUCT SKU QTY
{{$sr}} @if($productsInOrder->getProductInfo) {{$productsInOrder->getProductInfo->title}} @endif {{$productsInOrder->getProductInfo->sku}} {{$productsInOrder->offer_product_quantity}}
@endif {{-- Order in offer ends --}}
ADDRESS :

{{$shipping_address}}

DELIVERY ADDRESS :

{{$delivery_address}}

Instructions :

{{$order->ordernote}}