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

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

{{ __('products.index_clear_button') }}
@csrf
( {{ __('products.index_selected') }})
|
@forelse ($products as $product) @empty @endforelse
{{ __('products.index_table_image') }} {{ __('products.index_table_name') }} {{ __('products.index_table_asin') }} {{ __('products.index_table_type') }} {{ __('products.index_table_price') }} {{ __('products.index_table_status') }} {{ __('products.index_table_actions') }}
@if ($product->image_url) {{ $product->name }} @else
@endif
{{ $product->name }} {{ $product->asin ?? 'N/A' }} {{ $product->type ?? 'N/A' }} ${{ number_format($product->price ?? 0, 2) }} @if ($product->availability ?? true) {{ __('products.status_available') }} @else {{ __('products.status_not_available') }} @endif
{{ __('products.index_table_view') }} {{ $product->name }} @if ($product->type !== 'abproduct') {{ __('products.index_table_edit') }} {{ $product->name }} @endif @csrf @method('DELETE')
{{ __('products.index_no_products') }}
@forelse ($products as $product)
@if ($product->image_url) {{ $product->name }} @else
@endif

{{ $product->name }}

{{ __('products.index_table_asin') }}: {{ $product->asin ?? 'N/A' }}

{{ __('products.index_table_type') }}: {{ $product->type ?? 'N/A' }}

{{ __('products.index_table_price') }}: ${{ number_format($product->price ?? 0, 2) }}

{{ __('products.index_table_status') }}: @if ($product->availability ?? true) {{ __('products.status_available') }} @else {{ __('products.status_not_available') }} @endif

{{ __('products.index_table_view') }} @if ($product->type !== 'abproduct') {{ __('products.index_table_edit') }} @endif
@csrf @method('DELETE')
@empty

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

{{ __('products.index_clear_button') }}
@endforelse
@if ($products instanceof \Illuminate\Pagination\LengthAwarePaginator) {{ $products->appends(request()->query())->links() }} @endif
@endsection