@extends('layouts.app') @section('title', __('Expiring Soon')) @section('content')
{{ __('Batches expiring within :days days.', ['days' => config('pharma.expiring_soon_days')]) }}
| {{ __('Product') }} | {{ __('Batch') }} | {{ __('Expiration') }} | {{ __('Days left') }} | {{ __('Quantity') }} |
|---|---|---|---|---|
| {{ $batch->product?->name }} | {{ $batch->batch_number }} | {{ $batch->expiration_date?->format('d/m/Y') }} | @php $days = $batch->daysToExpiry(); @endphp {{ $days }} {{ __('days') }} | {{ $batch->quantity }} |
| {{ __('No batches expiring soon.') }} | ||||