@extends('layouts.vendor.app') @section('title',translate('messages.food_list')) @push('css_or_js') @endpush @section('content')
| {{ translate('messages.sl') }} | {{translate('messages.name')}} | {{translate('messages.category')}} | {{translate('messages.price')}} | @if ($productWiseTax){{ translate('messages.Vat/Tax') }} | @endif{{translate('messages.Recommended')}} | {{translate('messages.status')}} | {{translate('messages.action')}} |
|---|---|---|---|---|---|---|---|
| {{$key+$foods->firstItem()}} |
{{ ucwords(Str::limit($food['name'],20,'...')) }}
@php($stock_out = false)
@if ($food->stock_type != 'unlimited' && $food->item_stock <= 0)
@php($stock_out = true)
{{ translate('Out Of Stock') }}
@else
@if(isset($food->variations))
@foreach (json_decode($food->variations,true) as $item)
@if (isset($item['values']) && is_array($item['values']))
@foreach ($item['values'] as $value)
@if(isset($value['stock_type']) && $value['stock_type'] != 'unlimited' && $value['current_stock'] <= 0)
@php($stock_out = true)
@endif
@endforeach
@endif
@endforeach
@endif
@if($stock_out)
@endif
@endif
|
{{ Str::limit(($food?->category?->parent ? $food?->category?->parent?->name : $food?->category?->name ) ?? translate('messages.uncategorize') , 20, '...') }} |
{{app\CentralLogics\Helpers::format_currency($food['price'])}}
|
@if ($productWiseTax)
@forelse ($food?->taxVats?->pluck('tax.name', 'tax.tax_rate')->toArray() as $key => $tax)
{{ $tax }} :
({{ $key }}%)
@empty {{ translate('messages.N/A') }} @endforelse |
@endif
|
|