@extends('shop.layout') @section('title', __('portal.shop.catalog_title')) @section('content') @php $currency = $tenant->settings['currency'] ?? 'MDL'; @endphp
@if ($parts->isEmpty())

{{ $term ? __('portal.shop.no_parts_found_for', ['term' => $term]) : __('portal.shop.no_parts_found') }}.

@else
@foreach ($parts as $p) @php $stock = (float) $p->qty; $img = $p->imageUrl(); @endphp
@if ($img) {{ $p->name }} @else
📦
@endif

{{ $p->name }}

{{ $p->brand ? $p->brand . ' · ' : '' }}{{ $p->article ?? '' }}
{{ $stock > 0 ? __('portal.shop.in_stock') : __('portal.shop.on_order') }}
{{ number_format((float) $p->sell_price, 2) }} {{ $currency }}
@csrf
@endforeach
{{ $parts->links() }}
@endif @endsection