@extends('admin.layouts.app') @section('title', 'Products Management') @section('breadcrumb') @endsection @section('page-header')

{{ __('Products Management') }}

{{ __('Manage your product catalog with VAT and pricing') }}

{{ __('Add New Product') }}
@endsection @push('styles') @endpush @section('content')

{{ number_format($stats['total']) }}

{{ __('Total Products') }}

{{ number_format($stats['active']) }}

{{ __('Active Products') }}

{{ number_format($stats['low_stock']) }}

{{ __('Low Stock') }}

{{ number_format($stats['featured']) }}

{{ __('Featured Products') }}

-
{{ __('Products List') }}
@forelse($products as $product) @empty @endforelse
{{ __('Product') }} {{ __('SKU') }} {{ __('Pricing & VAT') }} {{ __('Stock') }} {{ __('Status') }} {{ __('Actions') }}
@if($product->main_image) {{ $product->name }} @else
@endif
{{ $product->name }}
{{ $product->brand }} @if($product->is_featured) {{ __('Featured') }} @endif
{{ $product->sku }} @if($product->cod_eligible)
{{ __('COD') }} @endif
@php $basePrice = $product->sale_price ?: $product->price; $vatAmount = $basePrice * ($product->tax_rate/100); $customerPrice = $basePrice + $vatAmount; @endphp
{{ __('Base') }}: {{ number_format($basePrice, 2) }} {{ __('SAR') }}
{{ __('Customer') }}: {{ number_format($customerPrice, 2) }} {{ __('SAR') }}
{{ __('incl. 15% VAT') }} @if($product->sale_price) @php $discount = (($product->price - $product->sale_price) / $product->price) * 100; @endphp
-{{ number_format($discount, 0) }}%
@endif
@if($product->track_inventory) @if($product->quantity <= 0) {{ __('Out of Stock') }} @elseif($product->quantity <= $product->min_quantity) {{ __('Low Stock') }} ({{ $product->quantity }}) @else {{ __('In Stock') }} ({{ $product->quantity }}) @endif @else {{ __('Not Tracked') }} @endif
@if($product->is_active) {{ __('Active') }} @else {{ __('Inactive') }} @endif @if($product->status) {{ ucfirst($product->status) }} @endif
{{ __('No products found') }}

{{ __('Start by adding your first product') }}

{{ __('Add Product') }}
@if($products->hasPages()) @endif
@endsection @push('scripts') @endpush