@extends('layout.app') @section('title', __('products')) @section('content')
{{ __('products') }}
@can('product.create')   {{ __('add_product') }} @endcan
@if (feature('barcodes')) @endif @if (feature('purchases')) @endif @foreach ($products as $product) @if (feature('barcodes')) @endif @if (feature('purchases')) @endif @endforeach
{{ __('sl') }} {{ __('image') }} {{ __('name') }}{{ __('code') }}{{ __('brand') }} {{ __('category') }}{{ __('quantity') }}{{ __('unit') }} {{ __('price') }} {{ __('action') }}
{{ $loop->iteration }} {{ $product->name }}{{ $product->code }}{{ $product->brand?->title }} {{ $product->category?->name ?? 'N/A' }}{{ $product->qty }} {{ ucfirst($product->unit?->name) ?? 'N/A' }} {{ numberFormat($product->price) }}
@endsection @push('scripts') @endpush