@extends('shop.layout') @section('title', $part->name) @section('content') @php $currency = $tenant->settings['currency'] ?? 'MDL'; $stock = (float) $part->qty; $imgs = $part->imageUrls(); @endphp ← Înapoi la catalog @if (! empty($imgs))
{{ $part->name }}
@if (count($imgs) > 1)
@foreach ($imgs as $i => $url) @endforeach
@endif
@else
@endif

{{ $part->name }}

{{ $part->brand ? 'Brand: ' . $part->brand : '' }} {{ $part->article ? ' · Cod: ' . $part->article : '' }} {{ $part->category ? ' · ' . $part->category : '' }}
{{ $stock > 0 ? '● În stoc (' . rtrim(rtrim(number_format($stock, 2), '0'), '.') . ' ' . ($part->unit ?? 'buc') . ')' : '○ La comandă' }}
{{ number_format((float) $part->sell_price, 2) }} {{ $currency }}
@csrf
@if ($part->crossRefs->isNotEmpty())

Coduri echivalente (cross)

@foreach ($part->crossRefs as $cr) {{ $cr->cross_article }}{{ $cr->brand ? ' (' . $cr->brand . ')' : '' }} @endforeach
@endif @if ($part->notes)

Descriere

{{ $part->notes }}

@endif @if ($img)
{{-- /right column --}}
{{-- /card grid --}} @else
{{-- /card --}} @endif @endsection