@extends('master', ['title' => __('dashboard.products')]) @section('content')

{{ __('dashboard.all_products') }}

{{ __('dashboard.add_product') }}
@forelse ($products as $product) @empty @endforelse
{{ __('dashboard.id') }} {{ __('dashboard.image') }} {{ __('dashboard.name') }} {{ __('dashboard.price') }} {{ __('dashboard.stock') }} {{ __('dashboard.category') }} {{ __('dashboard.brand') }} {{ __('dashboard.actions') }}
{{ $loop->iteration }} @if ($product->images->first()) @else — @endif {{ $product->getTranslation('name', app()->getLocale()) }} {{ $product->price }} {{ $product->stock }} {{ $product->category?->getTranslation('name', app()->getLocale()) }} {{ $product->brand?->getTranslation('name', app()->getLocale()) }}
@csrf @method('DELETE')
{{ __('dashboard.no_products') }}
{{ $products->links() }}
@endsection @push('js') @if ($products->count()) @endif @endpush