@extends('adminlte::page') @section('title', 'Stok Özeti') @section('content')

Stok Özeti

Stok Hareketleri
{{-- Şube Kartları --}}
@foreach($branches as $branch) @endforeach
{{-- Ürün Arama --}}
{{-- Stok Tablosu --}}
{{-- Şube kolonları --}} @foreach($branches as $branch) @endforeach @forelse($products as $product) @foreach($branches as $branch) @endforeach @empty @endforelse @if(count($products) > 0) @foreach($branches as $branch) @endforeach @endif
Ürün Kategori {{ $branch->name }} ({{ $branch->type }}) Toplam Toplam Değer
{{ $product['name'] }} {{ $product['category'] }} @php $qty = $product['branch_stocks'][$branch->id] ?? 0; @endphp @if($qty > 0) {{ number_format($qty, 2) }} {{ $product['unit'] }} @else @endif {{ number_format($product['total'], 2) }} {{ $product['unit'] }} {{ number_format($product['total_value'], 2) }} ₺
Henüz stok kaydı bulunmuyor.
Genel Toplam @php $branchTotal = collect($products)->sum(fn($p) => $p['branch_stocks'][$branch->id] ?? 0); @endphp {{ number_format($branchTotal, 2) }} kg {{ number_format(collect($products)->sum('total'), 2) }} kg {{ number_format(collect($products)->sum('total_value'), 2) }} ₺
@endsection @section('css') @endsection @section('js') @endsection