@extends('layouts.vendor.app') @section('title',translate('Food Preview')) @push('css_or_js') @endpush @section('content')
{{ translate('Short Description') }} | 
                                {{translate('messages.price')}} | 
                                {{translate('messages.variations')}} | 
                                {{ translate('messages.addons') }} | 
                                {{ translate('Tags') }} | 
                            
                                     {{$product['description']}}  | 
                                {{translate('messages.price')}} : {{\App\CentralLogics\Helpers::format_currency($product['price'])}} {{translate('messages.discount')}} : {{\App\CentralLogics\Helpers::format_currency(\App\CentralLogics\Helpers::discount_calculate($product,$product['price']))}} {{translate('messages.available')}} {{translate('messages.time')}} {{translate('messages.starts')}} : {{date(config('timeformat'), strtotime($product['available_time_starts']))}} {{translate('messages.available')}} {{translate('messages.time')}} {{translate('messages.ends')}} : {{date(config('timeformat'), strtotime($product['available_time_ends']))}} | {{-- @foreach(json_decode($product['variations'],true) as $variation) {{$variation['type']}} : {{\App\CentralLogics\Helpers::format_currency($variation['price'])}} @endforeach --}} @foreach(json_decode($product->variations,true) as $variation) @if(isset($variation["price"])) {{ translate('please_update_the_food_variations.') }} @break @else {{$variation['name']}} - @if ($variation['type'] == 'multi') {{ translate('messages.multiple_select') }} @elseif($variation['type'] =='single') {{ translate('messages.single_select') }} @endif @if ($variation['required'] == 'on') - ({{ translate('messages.required') }}) @endif @if ($variation['min'] != 0 && $variation['max'] != 0) ({{ translate('messages.Min_select') }}: {{ $variation['min'] }} - {{ translate('messages.Max_select') }}: {{ $variation['max'] }}) @endif @if (isset($variation['values'])) @foreach ($variation['values'] as $value) {{ $value['label']}} : {{\App\CentralLogics\Helpers::format_currency( $value['optionPrice'])}} @endforeach @endif @endif @endforeach | @foreach(\App\Models\AddOn::whereIn('id',json_decode($product['add_ons'],true))->get() as $addon) {{$addon['name']}} : {{\App\CentralLogics\Helpers::format_currency($addon['price'])}} @endforeach | @forelse($product->tags as $c) {{$c->tag.','}} @empty {{ translate('No_tags_found') }} @endforelse | 
|---|
| {{ translate('messages.sl') }} | {{translate('messages.reviewer')}} | {{translate('messages.review')}} | {{translate('messages.date')}} | 
|---|---|---|---|
| {{ $key + $reviews->firstItem() }} | 
                                @if ($review->customer)
                                     
                                        {{$review->customer['f_name']." ".$review->customer['l_name']}} 
                                            {{$review->customer->email}}
                                         
                                     | 
                            
                                 {{$review['comment']}}  | 
                            {{date('d M Y ',strtotime($review['created_at']))}} {{date(config('timeformat'),strtotime($review['created_at']))}} |