@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; @endphp

{{ $p->name }}

{{ $p->brand ? $p->brand . ' · ' : '' }}{{ $p->article ?? '' }}
{{ $stock > 0 ? '● În stoc' : '○ La comandă' }}
{{ number_format((float) $p->sell_price, 2) }} {{ $currency }}
@csrf
@endforeach
{{ $parts->links() }}
@endif @endsection