@php
$color=['table-custom','table-primary','table-secondary','table-success','table-danger','table-warning','table-info','table-light','table-primary','table-secondary','table-success','table-danger','table-warning','table-info','table-light','table-primary','table-secondary','table-success','table-danger','table-warning','table-info','table-light','table-primary','table-secondary','table-success','table-danger','table-warning','table-info','table-light','table-primary','table-secondary','table-success','table-danger','table-warning','table-info','table-light'];
@endphp
Name |
: |
{{$data->u_name}} {{$data->u_lname}} |
Customer ID |
: |
{{$data->u_unique_id}} |
@php
$j=1;
@endphp
@foreach($recent_orders as $recent_order)
# |
Item |
Price |
Quantity |
Total |
@php
$i=1;
$order_items=$recent_order->order_items;
$out_fit_ids=array();
@endphp
@foreach($order_items as $order_item)
@if ($order_item->o_item_outfit_id==0)
{{$i}} |
{{$order_item->o_item_name}} |
{{$order_item->o_item_rate}} QAR |
{{$order_item->o_item_quantity}} |
@if($order_item->o_item_grand_total!=0)
{{$order_item->o_item_grand_total}} QAR |
@else
{{$order_item->o_item_sub_total}} QAR |
@endif
@else
@php
if (in_array($order_item->o_item_outfit_id, $out_fit_ids)==false)
{
array_push($out_fit_ids,$order_item->o_item_outfit_id);
}
@endphp
@endif
@php
@endphp
@endforeach
@foreach ($out_fit_ids as $out_fit_id)
@php
$outfit_details=DB::table('tbl_outfits')
->where('outfit_id',$out_fit_id)
->first();
@endphp
{{$i}} |
{{$outfit_details->outfit_name}} |
{{ sprintf("%.2f", $outfit_details->outfit_price)}} |
1 |
{{ sprintf("%.2f", $outfit_details->outfit_price)}} |
@php
$i++;
@endphp
@endforeach
Net Amount
|
{{$recent_order->o_sub_total}} QAR |
Delivery Charge
|
{{$recent_order->o_shipping_charge}} QAR |
Grand Total
|
{{$recent_order->o_grand_total}} QAR |
@php
$j++;
@endphp
@endforeach