@extends('shop.layout')
@section('title', 'Catalog piese')
@section('content')
@php $currency = $tenant->settings['currency'] ?? 'MDL'; @endphp
@if ($parts->isEmpty())
Nicio piesă găsită{{ $term ? ' pentru „' . $term . '”' : '' }}.
@else
@foreach ($parts as $p)
@php $stock = (float) $p->qty; $img = $p->imageUrl(); @endphp
@if ($img)
@else
📦
@endif
{{ $p->name }}
{{ $p->brand ? $p->brand . ' · ' : '' }}{{ $p->article ?? '' }}
{{ $stock > 0 ? '● În stoc' : '○ La comandă' }}
{{ number_format((float) $p->sell_price, 2) }} {{ $currency }}
@endforeach
{{ $parts->links() }}
@endif
@endsection