@extends('layouts.vendor.app') @section('title',translate('messages.Out_of_Stock')) @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()}} |
{{ Str::limit($food['name'], 20, '...') }}@php($stock_out = false) @if ($food->stock_type != 'unlimited' && $food->item_stock <= 0) @php($stock_out = true) @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 @endif @if($stock_out) {{ translate('Out Of Stock') }} @endif |
{{ Str::limit(($food?->category?->parent ? $food?->category?->parent?->name : $food?->category?->name ) ?? translate('messages.uncategorize') , 20, '...') }} |
{{($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
|
|