@if(isset($footer_banner[0])) @endif @if(auth('customer')->check() && count($order_again)>0)

{{ translate('Order_Again') }}

{{ translate('Want_to_order_your_usuals') }}? {{ translate('Just_reorder_from_your_previous_orders') }}.

@foreach($order_again as $order)
@if($order['order_status'] =='processing') {{ translate('packaging') }} @elseif($order['order_status'] =='failed') {{ translate('Failed_to_Deliver') }} @elseif($order['order_status'] == 'all') {{ translate('all') }} @else {{ translate(str_replace('_',' ',$order['order_status'])) }} @endif
{{ translate('on') }} {{date('d M Y',strtotime($order['updated_at']))}}
@foreach($order['details']->take(3) as $key=>$detail)
@endforeach @if(count($order['details']) > 3)
+{{ count($order['details'])-3 }}
{{ translate('more') }}
@endif
{{ translate('Order_ID') }}: #{{ $order['id'] }}
{{ translate('Final_Total') }} : {{ \App\CPU\Helpers::currency_converter($order['order_amount']) }}
{{ translate('order_again') }}
@endforeach
@else
@if($sidebar_banner) @else @endif
@endif

{{translate('Find')}} {{translate('what_you_need')}}

@foreach($category_slider as $ke=>$all_category) @endforeach
@foreach($final_category as $key=>$category)
{{$category['name']}}
{{$category['product_count']}} {{translate('products')}}
{{translate('view_all')}}
@foreach($category['childes'] as $key=>$sub_category)
{{$sub_category['name']}}
@endforeach
@endforeach
@if(count($random_coupon)>0)

{{ translate('Happy_Club') }}

{{ translate('collect_coupons_from_stores_and_apply_to_get_special_discount_from_stores') }}

@foreach($random_coupon as $coupon)
@if($coupon->coupon_type == 'free_delivery') {{translate($coupon->coupon_type)}} @else {{ $coupon->discount_type == 'amount' ? \App\CPU\Helpers::currency_converter($coupon->discount) : $coupon->discount.'%' }} OFF @endif
{{ translate('for') }} @if($coupon->seller_id == '0') {{ translate('All_Shops') }} @elseif($coupon->seller_id == NULL) {{ $web_config['name']->value }} @else {{ isset($coupon->seller->shop) ? $coupon->seller->shop->name : '' }} @endif
{{ translate('code') }}: {{ $coupon->code }}
@endforeach
@else
@if($top_side_banner) @else @endif
@endif