{{\App\Model\BusinessSetting::where(['type'=>'company_name'])->first()->value}}

{{--
{{\App\Model\BusinessSetting::where(['type'=>'address'])->first()->value}}
--}}
{{\App\CPU\translate('Phone')}} : {{\App\Model\BusinessSetting::where(['type'=>'company_phone'])->first()->value}}
{{\App\CPU\translate('Order ID')}} : {{$order['id']}}
{{date('d/M/Y h:i a',strtotime($order['created_at']))}}
@if($order->customer)
{{\App\CPU\translate('Customer Name')}} : {{$order->customer['f_name'].' '.$order->customer['l_name']}}
@if ($order->customer->id !=0)
{{\App\CPU\translate('Phone')}} : {{$order->customer['phone']}}
@endif
@endif
@php($sub_total=0) @php($total_tax=0) @php($total_dis_on_pro=0) @php($product_price=0) @php($total_product_price=0) @php($ext_discount=0) @php($coupon_discount=0) @foreach($order->details as $detail) @if($detail->product) @php($sub_total+=$amount) @php($total_product_price+=$product_price) @php($total_tax+=$detail['tax']) @endif @endforeach
{{\App\CPU\translate('QTY')}} {{\App\CPU\translate('DESC')}} {{\App\CPU\translate('Price')}}
{{$detail['qty']}} {{ Str::limit($detail->product['name'], 200) }}
@if(count(json_decode($detail['variation'],true))>0) {{\App\CPU\translate('Variation')}} : @foreach(json_decode($detail['variation'],true) as $key1 =>$variation)
{{\App\CPU\translate($key1)}} : {{$variation}}
@endforeach @endif {{\App\CPU\translate('Discount')}} : {{\App\CPU\Helpers::currency_converter(round($detail['discount'],2))}}
@php($amount=($detail['price']*$detail['qty'])-$detail['discount']) @php($product_price = $detail['price']*$detail['qty']) {{\App\CPU\Helpers::currency_converter(round($amount,2))}}
{{\App\CPU\translate('Items Price')}}: {{\App\CPU\Helpers::currency_converter(round($sub_total,2))}}
{{\App\CPU\translate('Tax')}} / {{\App\CPU\translate('VAT')}}: {{\App\CPU\Helpers::currency_converter(round($total_tax,2))}}
{{\App\CPU\translate('Subtotal')}}: {{\App\CPU\Helpers::currency_converter(round($sub_total+$total_tax,2))}}
{{\App\CPU\translate('extra_discount')}}: {{\App\CPU\Helpers::currency_converter(round($ext_discount,2))}}
{{\App\CPU\translate('coupon_discount')}}: {{\App\CPU\Helpers::currency_converter(round($coupon_discount,2))}}
{{\App\CPU\translate('Total')}}: {{\App\CPU\Helpers::currency_converter(round($order->order_amount,2))}}
{{\App\CPU\translate('Paid_by')}}: {{\App\CPU\translate($order->payment_method)}}
"""{{\App\CPU\translate('THANK YOU')}}"""