@extends('layouts.app')
@section('title', 'قائمة الهالك')
@section('page_heading', 'قائمة الهالك')
@section('content')
@php $hasFilter = request()->hasAny(['keyword','date_from','date_to']); @endphp
قائمة الهالك
{{ number_format($products->total()) }}
المنتجات
{{-- Filter --}}
@if($products->isEmpty())
@include('layouts.partials.index-empty-state',['icon'=>'fa-solid fa-circle-xmark','title'=>'لا توجد منتجات هالك','message'=>''])
@else
@foreach(['SKU','المنتج','التصنيف','تاريخ التحويل','بواسطة','السبب','إجراءات'] as $h)
| last) style="text-align:end" @endif>{{ $h }} |
@endforeach
@foreach($products as $p)
| {{ $p->sku }} |
{{ $p->name }} |
{{ $p->category?->name ?? '—' }} |
{{ optional($p->scrapped_at)->format('Y-m-d H:i') ?? '—' }} |
{{ $p->scrapper?->name ?? '—' }} |
{{ $p->scrap_reason ?: '—' }} |
عرض
|
@endforeach
{{ $products->links() }}
@endif
@endsection