@extends('layouts.vendor.app') @section('title',translate('messages.Out_of_Stock')) @push('css_or_js') @endpush @section('content')
@foreach(request('types', []) as $type) @endforeach @foreach(request('status', []) as $status) @endforeach @foreach(request('category_ids', []) as $id) @endforeach
@if ($productWiseTax) @endif @foreach($foods as $key=>$food) @php( $stock_out = null) @if ($productWiseTax) @endif {{-- Stock Update Modal --}}
{{ translate('messages.sl') }} {{translate('messages.name')}} {{translate('messages.category')}} {{translate('messages.price')}}{{ translate('messages.Vat/Tax') }}{{translate('messages.Recommended')}} {{translate('messages.status')}} {{translate('messages.action')}}
{{$key+$foods->firstItem()}} {{$food->name}} image
{{ 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'])}}
@forelse ($food?->taxVats?->pluck('tax.name', 'tax.tax_rate')->toArray() as $key => $tax) {{ $tax }} : ({{ $key }}%)
@empty {{ translate('messages.N/A') }} @endforelse
@csrf @method('delete')