@extends('layouts.app') @section('content')

{{ $product->name }}

{{ __('Stock') }}: {{ $product->sku }}

{{ __('Print Label') }} {{ __('Edit Product') }} @if (auth()->user()->isOwner() || auth()->user()->isAdmin())
@csrf @method('DELETE')
@endif
@if (session('success'))
{{ session('success') }}
@endif

{{ __('Details') }}

{{ __('Unit Price') }}

{{ number_format($product->unit_price, 2) }} {{ config('stockiny.currency') }}

{{ __('On hand') }}

{{ $product->quantity_on_hand }}

{{ __('Min Stock') }}

{{ $product->min_stock }}

{{ __('Location') }}

{{ $product->location ?? '—' }}

@if ($product->description)
{{ $product->description }}
@endif

{{ __('Recent movements') }}

@forelse ($product->stockMovements as $movement)

{{ __(\Illuminate\Support\Str::headline($movement->type)) }}

{{ $movement->occurred_at->translatedFormat('M d, Y H:i') }}

{{ $movement->type === 'out' ? '-' : '+' }}{{ $movement->quantity }}
@empty

{{ __('No recent movement.') }}

@endforelse

{{ __('QR Code') }}

{{ __('QR Code') }} {{ $product->sku }}

{{ __('Scan to reference Stock: :sku', ['sku' => $product->sku]) }}

@endsection