@extends('layouts.app') @section('title', __('All Products')) @section('content')
{{ __('Import') }} {{ __('New Product') }}
@if (session('import_categories'))

{{ __('Categories created automatically') }}

{{ implode(', ', session('import_categories')) }}

@endif @if (session('import_warnings'))

{{ __('Import warnings') }}

@endif @if (session('import_errors'))

{{ __('Import errors') }}

@endif
@forelse ($products as $product) @empty @endforelse
{{ __('Name') }} {{ __('Category') }} {{ __('Barcode') }} {{ __('Purchase') }} {{ __('Selling') }} {{ __('Stock') }}
{{ $product->name }} @if ($product->requires_prescription)Rx@endif @if ($product->generic_name){{ $product->generic_name }}@endif {{ $product->category?->name ?? '—' }} {{ $product->barcode ?? '—' }} {{ money($product->purchase_price) }} {{ money($product->selling_price) }} {{ $product->total_stock }}
@csrf @method('DELETE')
{{ __('No products found.') }}
{{ $products->links() }}
@endsection