@php $resto = \App\Models\Restaurants::find(\App\Helpers\CommonMethods::getRestuarantID()); $resto_metas = \App\Helpers\CommonMethods::getRestoMetas($resto); // $resto_meta = isset($resto->resto_metas)?$resto->resto_metas:null; //dd($resto_metas); $currency = isset($resto_metas['BUSSINESS_CCY'])?$resto_metas['BUSSINESS_CCY']:"IQD"; $business_type = isset($resto_metas['BUSSINESS_TYPE'])?$resto_metas['BUSSINESS_TYPE']:"Restaurants"; $is_allow_print_preview = isset($resto_metas['PRINT_PREVIEW_ON_ACCEPT_ORDER'])?$resto_metas['PRINT_PREVIEW_ON_ACCEPT_ORDER']:"Disabled"; $imgix = isset($resto_metas['IMGIX_SOURCE']) && !empty($resto_metas['IMGIX_SOURCE'])?$resto_metas['IMGIX_SOURCE']:"https://meemappaws.imgix.net"; $restoTax = isset($resto_metas['DISPLAY_TAX_INFO'])?$resto_metas['DISPLAY_TAX_INFO']:""; $trn_info = isset($resto_metas['TRN_DISPLAY'])?$resto_metas['TRN_DISPLAY']:""; app()->setLocale($resto->default_lang); //dump($order->customers->customer_addresses); @endphp
Address : {!! $order['business_info']['business_address'] !!} Phone : {!! $order['business_info']['whatsapp_number_notification'] !!} @if(!empty($trn_info)) TRN No : {!! $trn_info !!} @endif
Placed At: {!! $order['order_info']['order_created_at'] !!}
Name : {!! $order['customer']['customer_name'] !!}
Phone : {!! $order['customer']['customer_phone'] !!}
Address : {!! $order['customer']['deliveryAddress'] !!}
Item |
Qty |
Sub Total |
{!! $item['item_name']!!} |
{!! $item['quantity'] !!} |
{!! $item['item_price']['formatted_price'] !!} |
Delivery |
{!! $order['basket']['delivery_fee']['formatted_price'] !!} |
|
Discount |
{!! $order['basket']['discounted_amount']['formatted_price'] !!} |
|
Loyalty Amount |
{!! $order['basket']['loyalty_amount']['formatted_price'] !!} |
|
Delivery Discount |
{!! $order['basket']['delivery_discounted_amount']['formatted_price'] !!} |
|
Total |
{!! $order['basket']['is_discount']?$order['basket']['discounted_total_price']['formatted_price']:$order['basket']['grand_total']['formatted_price'] !!} |
|
Tax |
{!! $restoTax !!} |
|
Order Type / Pay |
{!! $order['order_info']['order_type'] !!} / {!! $order['order_info']['payment'] !!} |
Thank you for your order!