@php $schedules = $subscription->schedules()->get(); $order= $subscription->order; $product_price=0; $total_addon_price=0; $restaurant_discount_amount=0; @endphp

{{ translate('Subscription_Schedule') }} : {{ translate('You’ll get your order') }} {{ translate('messages.'.$subscription->type) }} {{ translate('messages.at') }}

@php $days = ['sunday', 'monday', 'tuesday', 'webnesday', 'thursday', 'friday', 'saturday']; @endphp
@foreach($schedules as $key=>$schedule)
@if ($schedule->type == 'weekly') {{ translate('messages.'.$days[$schedule->day]) }} @elseif ($schedule->type == 'daily') {{ translate('messages.daily') }} @else {{ translate('messages.Day') }} {{ $schedule->day }} @endif
{{ \App\CentralLogics\Helpers::time_format($schedule->time) }}
@endforeach
{{--
{{translate('messages.Total_delivered_amount')}}
{{\App\CentralLogics\Helpers::format_currency($subscription->billing_amount)}}

--}}
@if ($subscription->order) @foreach ($subscription->order->details as $key => $detail) @php if (isset($detail->food_id)) { $detail->food = json_decode($detail->food_details, true); $food = \App\Models\Food::where(['id' => $detail->food['id']])->first(); }else{ $detail->campaign = json_decode($detail->food_details, true); $campaign = \App\Models\ItemCampaign::where(['id' => $detail->campaign['id']])->first(); } @endphp @php($product_price += $amount) @php($restaurant_discount_amount += $detail['discount_on_food'] * $detail['quantity']) @endforeach @endif
{{translate('messages.sl')}} {{translate('messages.food_descriptions')}} {{translate('messages.addons')}} {{translate('messages.Price')}}
{{$key+1}}
food['image'])) src="{{ $food['image_full_url'] }}" @else src="{{isset($detail->campaign['image']) ? $campaign['image_full_url'] : dynamicAsset('public/assets/admin/img/100x100/food-default-image.png') }}" @endif data-onerror-image="{{dynamicAsset('public/assets/admin/img/160x160/img2.jpg')}}" alt="{{isset($detail->food_id) ? $detail->food['name'] : $detail->campaign['name']}} image">
{{isset($detail->food_id) ? Str::limit($detail->food['name'],30) : Str::limit($detail->campaign['name'],30) }}
@if (count(json_decode($detail['variation'], true)) > 0) @foreach(json_decode($detail['variation'],true) as $variation) @if ( isset($variation['name']) && isset($variation['values'])) {{ $variation['name']}} - @foreach ($variation['values'] as $value)     {{ $value['label']}} : {{\App\CentralLogics\Helpers::format_currency( $value['optionPrice'])}} @endforeach @else @if (isset(json_decode($detail['variation'],true)[0])) {{ translate('messages.Variation') }} : @foreach(json_decode($detail['variation'],true)[0] as $key1 =>$variation)
{{$key1}} : {{$variation}}
@endforeach @endif @break @endif @endforeach @endif
{{ translate('Price') }} : {{ \App\CentralLogics\Helpers::format_currency($detail['price']) }}
{{ translate('Qty') }} : {{ $detail['quantity'] }}
@foreach (json_decode($detail['add_ons'], true) as $key2 => $addon)
{{ Str::limit($addon['name'], 20, '...') }} : {{ $addon['quantity'] }} x {{ \App\CentralLogics\Helpers::format_currency($addon['price']) }}
@php($total_addon_price += $addon['price'] * $addon['quantity']) @endforeach
@php($amount = $detail['price'] * $detail['quantity'])
{{ \App\CentralLogics\Helpers::format_currency($detail['price']) }}

Warning: Undefined variable $order in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 196

Warning: Trying to access array offset on value of type null in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 196

Warning: Undefined variable $product_price in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 197

Warning: Undefined variable $total_addon_price in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 197

Warning: Undefined variable $restaurant_discount_amount in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 197

Warning: Undefined variable $order in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 197

Warning: Trying to access array offset on value of type null in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 197

Warning: Undefined variable $order in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 199

Warning: Trying to access array offset on value of type null in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 199

Warning: Undefined variable $order in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 200

Warning: Attempt to read property "tax_status" on null in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 200

Warning: Undefined variable $order in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 204

Warning: Attempt to read property "order_amount" on null in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 204

Warning: Undefined variable $subscription in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 204

Warning: Attempt to read property "quantity" on null in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 204

Warning: Undefined variable $order in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 206

Warning: Attempt to read property "order_amount" on null in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 206

Warning: Undefined variable $subscription in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 206

Fatal error: Uncaught Error: Call to a member function logs() on null in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php:206 Stack trace: #0 {main} thrown in /home/chaipost/public_html/reachstage.eelcon.in/resources/views/admin-views/order-subscription/partials/_info.blade.php on line 206