@extends('layouts.vendor.app') @section('title',translate('Food Preview')) @push('css_or_js') @endpush @section('content')
{{ translate('Short Description') }} |
{{translate('messages.price')}} |
{{translate('messages.Main_Stock')}} |
{{ translate('messages.addons') }} |
{{ translate('Tags') }} |
{{ translate('Nutrition Details') }} |
{{ translate('Allergy Details') }} |
@if ($productWiseTax)
{{ translate('Tax/Vat') }} |
@endif
{{$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_time_starts')}} : {{date(config('timeformat'), strtotime($product['available_time_starts']))}} {{translate('messages.available_time_ends')}} : {{date(config('timeformat'), strtotime($product['available_time_ends']))}} | @php($tock_out = null) @if ($product->stock_type == 'unlimited') {{translate('unlimited')}} @elseif($product->item_stock > 0) {{ $product->item_stock }} @else @php($tock_out = true) {{ translate('Out Of Stock') }} @endif | @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 | @if ($product->nutritions) @foreach($product->nutritions as $nutrition) {{$nutrition->nutrition}}{{ !$loop->last ? ',' : '.'}} @endforeach @endif | @if ($product->allergies) @foreach($product->allergies as $allergy) {{$allergy->allergy}}{{ !$loop->last ? ',' : '.'}} @endforeach @endif | @if ($productWiseTax)
@forelse ($product?->taxVats?->pluck('tax.name', 'tax.tax_rate')->toArray() as $key => $tax)
{{ $tax }} :
({{ $key }}%)
@empty {{ translate('messages.N/A') }} @endforelse |
@endif
|---|
| {{translate('messages.sl')}} | {{translate('messages.Variation_Name')}} | {{translate('messages.Variation_Wise_Price')}} | {{translate('messages.Stock')}}
@if ($tock_out == true)
|
|---|---|---|---|
| {{ $key + 1 }} |
{{ $variation?->variation?->name }}
{{ $variation->option_name }}
|
{{ \App\CentralLogics\Helpers::format_currency($variation?->option_price) }} | @if ($variation?->stock_type == "unlimited") {{translate('unlimited')}} @elseif( $variation?->total_stock - $variation?->sell_count > 0 ) {{ $variation?->total_stock - $variation?->sell_count }} @else {{ translate('Out Of Stock') }} @endif |
| {{ 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']))}} |