@php use App\Utils\Helpers; use App\Utils\ProductManager; @endphp
@if(isset($bannerTypeFooterBanner[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)
{{translate('+')}}{{ count($order['details'])-3 }}
{{ translate('more') }}
@endif
{{ translate('order_ID').':'.' ' .'#' }} {{ $order['id'] }}
{{ translate('final_total').':' }} {{ webCurrencyConverter($order['order_amount']) }}
{{ translate('order_again') }}
@endforeach
@else
@if($bannerTypeSidebarBanner) @else @endif
@endif @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' ? webCurrencyConverter($coupon->discount) : $coupon->discount.'%' .' '.translate('OFF')}} @endif
{{ translate('for') }} @if($coupon->seller_id == '0') {{ translate('all_shops') }} @elseif($coupon->seller_id == NULL) {{ $web_config['company_name'] }} @else {{ isset($coupon->seller->shop) ? $coupon->seller->shop->name : translate('shop_not_found') }} @endif
{{ translate('code') }}: {{ $coupon->code }}
@endforeach
@else
@if($bannerTypeTopSideBanner) @else @endif
@endif