@extends('layouts.admin') @section('title', 'Products') @section('header', 'Products') @section('content') @php $currencySymbol = App\Models\AppSetting::getValue('currency_symbol', html_entity_decode('₹', ENT_QUOTES, 'UTF-8')); $currencyDecimals = App\Models\AppSetting::currencyDecimals(); @endphp @if(session('success'))
{{ session('success') }}
@endif
@forelse($products as $product) @empty @endforelse
Product Store Category Brand Inventory Price Status Actions
{{ $product->name }}
SKU: {{ $product->sku ?: 'Not set' }}
{{ $product->restaurant?->name ?? '-' }} {{ $product->category?->name ?? '-' }} {{ $product->brand?->name ?? '-' }} @if($product->track_inventory) {{ $product->stock_quantity ?? 0 }} left @else Not tracked @endif
{{ $currencySymbol }}{{ number_format((float) $product->final_price, $currencyDecimals) }}
@if($product->discounted_price)
{{ $currencySymbol }}{{ number_format((float) $product->price, $currencyDecimals) }}
@endif
{{ ucfirst($product->approval_status ?? 'approved') }}
{{ $product->is_available ? 'Available' : 'Unavailable' }}
Edit
No products found.
{{ $products->links() }}
@endsection