@extends('adminlte::page') @section('title', $product->name . ' - Lotlar') @section('content')
| # | Lot No | Tedarikçi | Ambalaj | Çuval | Toplam | Alış Fiyatı | Lot Değeri | Giriş Tarihi |
|---|---|---|---|---|---|---|---|---|
| @if($index === 0) FIFO @else {{ $index + 1 }} @endif | {{ $lot->lot_number }} |
{{ optional($lot->supplierProduct?->supplier)->name ?? '-' }}
@if($lot->supplierProduct?->name)
({{ $lot->supplierProduct->name }}) @endif |
{{ optional($lot->packageType)->name ?? '-' }} | {{ $lot->current_package_count }} | {{ number_format($lot->current_total_quantity, 2) }} {{ optional($product->baseUnit)->symbol ?? 'kg' }} | {{ number_format($lot->purchase_unit_cost, 2) }} ₺ | {{ number_format($lot->current_total_quantity * $lot->purchase_unit_cost, 2) }} ₺ | {{ $lot->created_at->format('d.m.Y') }} |
| Toplam | {{ $lots->sum('current_package_count') }} | {{ number_format($lots->sum('current_total_quantity'), 2) }} {{ optional($product->baseUnit)->symbol ?? 'kg' }} | — | {{ number_format($lots->sum(fn($l) => $l->current_total_quantity * $l->purchase_unit_cost), 2) }} ₺ | — | |||