@section('title', 'Merchandise') @section('top-menu-items') @endsection @section('sub-menu-items') @endsection
@can('write_products') Add Product @endcan
Selected
{{-- --}} @can('write_products') @endcan @foreach ($products as $product) {{-- --}} @can('write_products') @endcan @endforeach
Product Name Revenue Type Price Tax AvailabilityActions
{{ $product->name }} {{ $product->revenue_type }} {{ $product->price }} @if ($product->taxes->isEmpty()) 'N/A' @else @foreach ($product->taxes as $tax) {{ $tax->name }} ({{ $tax->percentage ? $tax->percentage . '%' : '$' . $tax->fixed }})
@endforeach @endif
{{ $product->availability ? 'Available' : 'Not Available' }} Actions
{{ $products->onEachSide(1)->links('livewire::bootstrap') }}
@push('styles') @endpush @push('scripts') @endpush