@extends('layouts.app') @section('title', __('app.products')) @section('content')

{{ __('app.products') }}

@can('create', App\Models\Product::class) + {{ __('app.add') }} @endcan
@forelse ($products as $product) @empty @endforelse
{{ __('app.name') }} {{ __('app.sku') }} {{ __('app.category') }} {{ __('app.selling_price') }} {{ __('app.stock_quantity') }}
{{ $product->name }} {{ $product->sku }} {{ $product->category->name_bn }} ৳ {{ number_format($product->effectivePrice(), 2) }} {{ $product->stock_quantity }} @can('update', $product) {{ __('app.edit') }} @endcan @can('delete', $product)
@csrf @method('DELETE')
@endcan
{{ __('app.no_results') }}
{{ $products->links() }}
@endsection