@extends('layouts.app') @section('content')
Products

@if(session('success')) @endif
count() > 0) id="bookings-table" @endif class="table table-bordered align-middle text-center"> @forelse($products as $product) @empty @endforelse
ID Name Unit Type Standard Price Special Price PDF Add Images Model Category Brand Manufacturer QR code Status Views Actions
{{ $product->id }} {{ $product->name }} {{ $product->unit_type ?? 'N/A' }} {{ $product->standard_price ?? 'N/A' }} {{ $product->special_price ?? 'N/A' }} @if($product->datasheet_pdf_link) @endif Images {{ $product->model ?? 'N/A' }} @if($product->category) {{ $product->category->name }} @else N/A @endif @if($product->brand) {{ $product->brand->name }} @else N/A @endif @if($product->manufacturer) {{ $product->manufacturer->name }} @else N/A @endif @if($product->barcode) QR Code @endif {{ $product->status ? 'Active' : 'Inactive' }} {{ $product->view_count }}
@can('view products') @endcan @can('update products') @endcan @can('delete products')
@csrf @method('DELETE')
@endcan
No products found.
@endsection @push('script') @endpush