@extends('layouts.app') @section('title', 'Riwayat Stok - MCU Klinik Mustika') @section('breadcrumb')

Riwayat Stok

@endsection @section('content')
@if ($companyProfileConfigurationError) @else
Profil Perusahaan Apotek{{ $companyProfile->name }}
Kembali ke Stok
@endif
@include('partials.tables.filters', ['paginator' => $movements, 'tableFilters' => ['sort', 'direction']]) @forelse ($movements as $movement) @php($movementLabels = [ 'purchase' => 'Pembelian', 'sale' => 'Penjualan', 'return_in' => 'Retur Masuk', 'return_out' => 'Retur Keluar', 'transfer_in' => 'Transfer Masuk', 'transfer_out' => 'Transfer Keluar', 'adjustment' => 'Penyesuaian', 'opname' => 'Stok Opname' ]) @empty @endforelse
@include('partials.tables.sort_link', ['column' => 'created_at', 'label' => 'Waktu']) Barang Batch Lokasi @include('partials.tables.sort_link', ['column' => 'movement_type', 'label' => 'Jenis']) @include('partials.tables.sort_link', ['column' => 'quantity', 'label' => 'Jumlah']) Dicatat Oleh @include('partials.tables.sort_link', ['column' => 'notes', 'label' => 'Keterangan'])
{{ \App\Helpers\DateHelper::formatShort( $movement->created_at, ) }} {{ $movement->created_at?->format('H:i') }} {{ $movement->drug->name }} {{ $movement->drugBatch?->batch_number ?: '-' }} {{ $movement->location->name }} {{ $movementLabels[$movement->movement_type] ?? $movement->movement_type }} {{ $movement->quantity > 0 ? '+' : '' }}{{ number_format($movement->quantity, 0, ',', '.') }} {{ $movement->creator?->name ?: '-' }} {{ $movement->notes ?: '-' }}
Tidak ada data yang cocok dengan pencarian.
{{ $movements->links('partials.tables.pagination') }}
@endsection