@extends('layouts.app') @section('title', 'Riwayat Transaksi') @push('styles') @vite('resources/css/admin/transactions.css') @endpush @section('content')
Dashboard Riwayat Transaksi

Riwayat Transaksi

Kelola dan pantau seluruh transaksi stok barang.

@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
Total Transaksi {{ $transactions->total() }}
Barang Masuk {{ $transactions->where('transaction_type', 'masuk')->count() }}
Barang Keluar {{ $transactions->where('transaction_type', 'keluar')->count() }}
@if (request()->hasAny(['search', 'transaction_type'])) Reset @endif

Data Transaksi

Histori perubahan stok barang.

{{ $transactions->total() }} transaksi
@forelse($transactions as $transaction) @empty @endforelse
NO BARANG JENIS JUMLAH STOK SEBELUM STOK SESUDAH DILAKUKAN OLEH WAKTU AKSI
{{ $transactions->firstItem() + $loop->index }}
{{ $transaction->item->name }} {{ $transaction->item->category->name ?? '-' }}
@if ($transaction->transaction_type === 'masuk') Masuk @else Keluar @endif
{{ rtrim(rtrim(number_format($transaction->quantity, 2, ',', '.'), '0'), ',') }} {{ $transaction->item->unit->name ?? '' }}
{{ rtrim(rtrim(number_format($transaction->stock_before, 2, ',', '.'), '0'), ',') }} {{ rtrim(rtrim(number_format($transaction->stock_after, 2, ',', '.'), '0'), ',') }}
{{ strtoupper(substr($transaction->user->name ?? '?', 0, 1)) }}
{{ $transaction->user->name ?? '-' }}
{{ $transaction->activity?->created_at?->format('d-m-Y') ?? '-' }} {{ $transaction->activity?->created_at?->format('H:i') ?? '-' }}
Belum ada transaksi Belum terdapat riwayat transaksi stok.
@if ($transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection @push('scripts') @endpush