@extends('layouts.app') @section('title', $product->name) @section('content')
← {{ __('Back to products') }}

{{ $product->name }}

{{ $product->generic_name }}

@if ($product->requires_prescription)Rx@endif
{{ __('Selling') }}
{{ money($product->selling_price) }}
{{ __('Purchase') }}
{{ money($product->purchase_price) }}
{{ __('Total stock') }}
{{ $product->total_stock }}
{{ __('Barcode') }}
{{ $product->barcode }}
@if ($product->description)

{{ $product->description }}

@endif
@if ($product->image) @else
@endif

{{ __('Batches (FEFO order)') }}

@forelse ($movements as $batch) @empty @endforelse
{{ __('Batch') }} {{ __('Expiration') }} {{ __('Supplier') }} {{ __('Quantity') }} {{ __('Purchase') }}
{{ $batch->batch_number }} {{ optional($batch->expiration_date)->format('d/m/Y') ?? '—' }} @if ($batch->isExpired()){{ __('Expired') }} @elseif ($batch->daysToExpiry() !== null && $batch->daysToExpiry() <= 90){{ $batch->daysToExpiry() }}d@endif {{ $batch->supplier?->name ?? '—' }} {{ $batch->quantity }} {{ money($batch->purchase_price) }}
{{ __('No batches.') }}
@endsection