@extends('layouts.app') @section('headScripts') @endsection @section('content') {{-- İŞLEV ÇUBUĞU --}}
{{-- BREADCRUMB --}}
{{-- SAYFA BAŞLIĞI --}}
{{ $stockItem->shortname ?? mb_substr($stockItem->name, 0, 3, 'UTF-8') }}

STOK KARTI

{{ $stockItem->name }}

{{-- GRAFİKLER --}}
Stok Değeri
Güncel değer {{ number_format($stockItem->getLastSupplierPriceAttribute() * $stockItem->stock_quantity, 2) }}₺
Ortalama değer {{ number_format($stockItem->stock_quantity * $stockItem->getAverageCostAttribute(), 2) }}₺
FIFO değer {{ number_format($stockItem->stock_quantity * $stockItem->getFifoCostAttribute(), 2) }}₺
Stok Miktarı
{{ number_format($stockItem->stock_quantity, 2) }}
{{ uom_localized($stockItem->uom) }}
Birim Maliyeti
Son maliyet {{ number_format($stockItem->getLastSupplierPriceAttribute(), 2) }}₺
Ortalama maliyet {{ number_format($stockItem->getAverageCostAttribute(), 2) }}₺
FIFO maliyet {{ number_format($stockItem->getFifoCostAttribute(), 2) }}₺
{{-- STOK HAREKETLERİ --}}

inventory Stok Hareketleri

@if($stockTransactions->count() > 0)
@foreach ($stockTransactions as $transaction) {{-- İşlem türüne göre farklı açıklamalar gösterebilirsiniz --}} @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 ?? '-', 2, ',', '.') }}₺ {{ $transaction->created_at->format('d.m.Y H:i') }}
@else Bu ürün için henüz stok hareketi bulunmuyor. @endif
{{-- SAĞ PANEL --}}
{{-- STOK KARTI BİLGİLERİ --}}

info Stok Kartı Bilgileri

@livewire('stock-item-edit', ['stockItemId' => $stockItem->id]) {{-- DEĞİŞİKLİK GEÇMİŞİ --}}

history Değişiklik Geçmişi

@livewire('stock-item-logs', ['stockItemId' => $stockItem->id])
@endsection @section('scripts') @endsection