@if(session()->get('title') == "success")
Success
{{ session()->get('message') }}
@elseif (session()->get('title') == "error")
Error
{{ session()->get('message') }}
@elseif($errors->any())
Error
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@else
@endif
{{-- --}}
{{__('messages.name')}} |
{{__('messages.SKU')}} |
{{__('messages.StockProduct')}} |
{{__('messages.Categories')}} |
{{-- {{__('messages.CostingMethod')}} | --}}
{{__('messages.Price')}} |
{{__('messages.VATGroup')}} |
{{__('messages.STATUS')}} |
{{__('messages.ACTIONS')}} |
@if(isset($productData))
@if($productData->isEmpty())
There is no product yet! |
@endif
@foreach($productData as $product)
{{$product->name}}
|
{{$product->sku}} |
@if ($product->stock_product =='0')
No |
@else
Yes |
@endif
{{$product->getCategory->name}}
|
{{-- {{$product->costingMethod->name}} | --}}
{{$product->price}} |
{{ ($product->getTax()->exists()) ? $product->getTax->name : 'None'}}
|
@if ($product->status =='1')
Active |
@else
Inactive |
@endif
|
@endforeach
@endif