warehouse

Depo Seçimi

Stok detayları için depo seçimi yapınız.

@if(($warehouseQuantities['all'] ?? 0) > 0) @else
@endif trip_origin @if(($warehouseQuantities['main'] ?? 0) > 0) @else
@endif @foreach($warehouses as $warehouse) @php $warehouseId = $warehouse['id']; // Already a string $warehouseQty = $warehouseQuantities[$warehouseId] ?? 0; @endphp @if($warehouseQty > 0) @else
@endif @endforeach
{{-- GRAFİKLER --}}
Stok Değeri
Güncel değer {{ number_format($metrics['current_value'], 2) }}₺
Ortalama değer {{ number_format($metrics['average_value'], 2) }}₺
FIFO değer {{ number_format($metrics['fifo_value'], 2) }}₺
Stok Miktarı
{{ number_format($metrics['quantity'], 2) }}
{{ uom_localized($stockItem['uom']) }}
Birim Maliyeti
Son maliyet {{ number_format($metrics['last_price'], 2) }}₺
Ortalama maliyet {{ number_format($metrics['average_cost'], 2) }}₺
FIFO maliyet {{ number_format($metrics['fifo_cost'], 2) }}₺
{{-- STOK HAREKETLERİ --}}

inventory Stok Hareketleri @if($selectedWarehouse !== 'all') @if($selectedWarehouse === 'main') ANA DEPO @else @php $selectedWh = collect($warehouses)->firstWhere('id', $selectedWarehouse); @endphp @if($selectedWh) {{ $selectedWh['name'] }} @endif @endif @endif

@if(count($stockTransactions) > 0)
@foreach ($stockTransactions as $transaction) {{-- İşlem türüne göre farklı açıklamalar --}} @if ($transaction['action_type'] == "stock_delivery" && $transaction['delivery']) @else @endif @endforeach
Açıklama Değişim Kalan Stok Birim Maliyeti Tarih ve Saat
Fatura - {{ $transaction['delivery']['title'] }} - {{ $transaction['delivery']['total_price'] }}₺ @php $notes = $transaction['notes'] ?? 'Stok hareketi'; $decoded_notes = json_decode($notes, true); if($decoded_notes && isset($decoded_notes['invoice_id'])) { $external_ref = 'STOK DAĞITIMI - ' . ($decoded_notes['external_ref'] ?? 'Fatura'); $invoice_id = $decoded_notes['invoice_id']; $url = 'https://finance.apper.com.tr/invoices/show/' . $invoice_id; echo '' . $external_ref . ''; } else { echo e($notes); } @endphp @if($transaction['change'] > 0) +{{ number_format($transaction['change'], 2, ',', '.') }} @else {{ number_format($transaction['change'], 2, ',', '.') }} @endif {{ number_format($transaction['running_total'], 2, ',', '.') }} {{ number_format($transaction['base_price'] ?? 0, 2, ',', '.') }}₺ {{ \Carbon\Carbon::parse($transaction['created_at'])->format('d.m.Y H:i') }}
@else @if($selectedWarehouse === 'all') Bu ürün için henüz stok hareketi bulunmuyor. @elseif($selectedWarehouse === 'main') Ana depoda bu ürün için stok hareketi bulunmuyor. @else @php $selectedWh = collect($warehouses)->firstWhere('id', $selectedWarehouse); @endphp Seçili depoda ({{ $selectedWh['name'] ?? 'Belirtilmeyen' }}) bu ürün için stok hareketi bulunmuyor. @endif @endif
{{-- TRANSFER MODAL --}} @if($showTransferModal) @endif @if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif