{{ $product->name }}
{{ $product->sku }}
@if($product->barcode)
{{ $product->barcode }}
@endif
{{ $product->is_active ? 'مفعّل' : 'معطّل' }}
سعر البيع
{{ number_format((float) $product->sale_price, 2) }}
سعر التكلفة
{{ number_format((float) $product->cost_price, 2) }}
هامش الربح
{{ $profitMargin }}%
إجمالي المخزون
{{ number_format((float) $totalStock, 2) }} @if($product->track_stock && $product->min_stock_alert && $totalStock <= $product->min_stock_alert) @endif
معلومات المنتج
| الاسم | {{ $product->name }} |
|---|---|
| رمز المنتج (SKU) | {{ $product->sku }} |
| الباركود | {{ $product->barcode ?: '—' }} |
| التصنيف | @if($product->category) {{ $product->category->name }} @else — @endif |
| العلامة التجارية | @if($product->brand) {{ $product->brand->name }} @else — @endif |
| الوحدة | {{ $product->unit ? $product->unit->name . ' (' . $product->unit->short_name . ')' : '—' }} |
| نسبة الضريبة | {{ $product->tax_percent ? $product->tax_percent . '%' : '—' }} |
| حد تنبيه المخزون | {{ $product->min_stock_alert ?? '—' }} |
| تتبع المخزون | @if($product->track_stock) نعم @else لا @endif |
| الحالة | {{ $product->is_active ? 'مفعّل' : 'معطّل' }} |
| تاريخ الإضافة | {{ $product->created_at?->format('Y-m-d H:i') ?? '—' }} |
| الوصف | {{ $product->description }} |
ملخص التسعير
| سعر التكلفة | {{ number_format((float) $product->cost_price, 2) }} |
|---|---|
| سعر البيع | {{ number_format((float) $product->sale_price, 2) }} |
| هامش الربح (ريال) | {{ number_format((float) $product->sale_price - (float) $product->cost_price, 2) }} |
| هامش الربح (%) | {{ $profitMargin }}% |
| الضريبة المضافة | {{ number_format((float) $product->sale_price * (float) $product->tax_percent / 100, 2) }} |
| السعر شامل الضريبة | {{ number_format((float) $product->sale_price * (1 + (float) $product->tax_percent / 100), 2) }} |
المخزون حسب المخزن
| المخزن | الكمية المتاحة | الكمية المحجوزة | متوسط التكلفة | آخر تكلفة | الحالة |
|---|---|---|---|---|---|
| {{ $stock->warehouse?->name ?? '—' }} | {{ number_format($qty, 2) }} | {{ number_format($reserved, 2) }} | {{ number_format((float) ($stock->average_cost ?? 0), 2) }} | {{ number_format((float) ($stock->last_cost ?? 0), 2) }} | @if($available <= 0) نفد @elseif($isLow) منخفض @else متوفر @endif |
| لا توجد بيانات مخزون لهذا المنتج. | |||||
| الإجمالي | {{ number_format((float) $product->inventories->sum('quantity'), 2) }} | {{ number_format((float) $product->inventories->sum('reserved_quantity'), 2) }} | |||