@extends('admin.layouts.app') @section('title', 'Products Management') @section('breadcrumb')
{{ __('Manage your product catalog with VAT and pricing') }}
{{ __('Total Products') }}
{{ __('Active Products') }}
{{ __('Low Stock') }}
{{ __('Featured Products') }}
| {{ __('Product') }} | {{ __('SKU') }} | {{ __('Pricing & VAT') }} | {{ __('Stock') }} | {{ __('Status') }} | {{ __('Actions') }} | |
|---|---|---|---|---|---|---|
| 
                             
                                @if($product->main_image)
                                     
                        {{ $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') }} | 
                    ||||||