@extends('admin.layouts.dashboard') @section('title', 'Items') @section('content')

Items

+ Add Item
@if(session('success'))
{{ session('success') }}
@endif
@if(request()->filled('search')) Clear @endif
@forelse($products as $p) @empty @endforelse
Sr NoNameSKUTypeUnit Rate ($)Disc (%)GST (%)PST/HST (%)Actions
{{ ($products->currentPage() - 1) * $products->perPage() + $loop->iteration }} {{ $p->name }}@if($p->description)
{{ Str::limit($p->description, 50) }}@endif
{{ $p->sku ?: '—' }} {{ ucfirst($p->item_type) }} {{ $p->unit ?: '—' }} ${{ number_format($p->rate, 2) }} {{ $p->discount > 0 ? $p->discount.'%' : '—' }} {{ $p->gst_rate > 0 ? $p->gst_rate.'%' : '—' }} {{ ($p->pst_rate + $p->hst_rate) > 0 ? ($p->pst_rate + $p->hst_rate).'%' : '—' }}
Edit
@csrf @method('DELETE')
@if(request()->filled('search')) No items match your search. @else No products yet. @endif
{{ $products->onEachSide(1)->links() }}
@endsection