@extends('admin.layout.master') {{-- sidebar active --}} @section('open-gudang', 'open') @section('menu-gudang', 'bg-gradient-to-r from-[#53BF6A] to-[#275931] text-white') @section('menu-gudang-stok-movement', 'bg-gradient-to-r from-[#53BF6A] to-[#275931] text-white') @section('content') {{-- breadcrumb --}}
Gudang › Stok Movement
{{-- Category Tabs --}}
@can('baca history stok bahan baku') 📦 Mutasi Bahan Baku @endcan @can('baca history stok produk') 🏷️ Mutasi Produk Jadi @endcan
{{-- Filter Form --}}
Reset
{{-- Table Section --}}
{{-- Top Bar --}}
Export .xlsx
Total Mutasi: {{ $movements->total() }} record
{{-- Table --}}
@if ($category === 'product') @else @endif @if ($category === 'raw_material') @endif @forelse ($movements as $m) @php $isMasuk = strtolower($m->type) === 'in'; @endphp @if ($category === 'product') @else @endif @if ($category === 'raw_material') @endif @empty @endforelse
Waktu GudangSKU ProdukKode Barang Bahan BakuTipe JumlahDicatat OlehKeterangan
{{ $m->created_at ? $m->created_at->timezone(config('app.timezone', 'Asia/Jakarta'))->format('d/m/Y H:i') : '-' }} {{ $m->warehouse->name ?? '-' }} {{ $m->productStock?->productVariant?->sku ?? '-' }} {{ $m->productStock?->productVariant?->name ?? '-' }} {{ $m->rawMaterial->code ?? '-' }} {{ $m->rawMaterial->name ?? '-' }} @if ($isMasuk) 📥 Masuk @else 📤 Keluar @endif @if ($category === 'product') {{ $isMasuk ? '+' : '-' }}{{ $m->quantity }} {{ $m->productStock?->productVariant?->unit ?? 'unit' }} @else {{ $isMasuk ? '+' : '-' }}{{ $m->stock }} {{ $m->rawMaterial?->unit ?? '' }} @endif {{ $m->responsible->name ?? '-' }} {{ $m->note ?? '-' }}
Belum ada riwayat mutasi stok.
{{-- footer / pagination --}} {{ $movements->links('vendor.pagination.pagination') }}
@endsection