@extends('layouts.app') @section('title', 'Arus Kas Apotek - MCU Klinik Mustika') @section('breadcrumb')

Arus Kas Apotek

@endsection @section('content') @can ('manage-cash-flow')
Catat Kas Operasional
@csrf
@error ('flow_type')
{{ $message }}
@enderror
@error ('flow_date')
{{ $message }}
@enderror
@error ('amount')
{{ $message }}
@enderror
@if ($companyProfileConfigurationError) @else
{{ $companyProfile->name }}
@endif
@error ('reference_number')
{{ $message }}
@enderror
@error ('description')
{{ $message }}
@enderror
@endcan
{{ $companyProfile?->name ?? '-' }}
@include('partials.tables.filters', [ 'paginator' => $flows, 'tableFilters' => ['sort', 'direction', 'date_from', 'date_to', 'status', 'flow_type'] ]) @forelse ($flows as $flow) @php($statusClass = ['pending' => 'bg-warning', 'approved' => 'bg-success', 'rejected' => 'bg-danger'][$flow->status] ?? 'bg-secondary') @empty @endforelse
No. @include('partials.tables.sort_link', ['column' => 'flow_date', 'label' => 'Tanggal']) @include('partials.tables.sort_link', ['column' => 'flow_number', 'label' => 'Nomor']) @include('partials.tables.sort_link', ['column' => 'flow_type', 'label' => 'Jenis']) Lokasi Keterangan @include('partials.tables.sort_link', ['column' => 'amount', 'label' => 'Nominal']) @include('partials.tables.sort_link', ['column' => 'status', 'label' => 'Status']) Dicatat Oleh Aksi
{{ $flows->firstItem() + $loop->index }} {{ \App\Helpers\DateHelper::formatShort($flow->flow_date) }} {{ $flow->flow_number }} {{ $flow->flow_type === 'in' ? 'Masuk' : 'Keluar' }}
{{ $flow->is_system_generated ? 'Otomatis' : 'Manual' }}
{{ $flow->location?->name ?? '-' }} {{ $flow->description }} @if ($flow->reference_number)
Ref: {{ $flow->reference_number }}
@endif
Rp {{ number_format($flow->amount, 0, ',', '.') }} {{ ['pending' => 'Menunggu', 'approved' => 'Disetujui', 'rejected' => 'Ditolak'][ $flow->status ] }} {{ $flow->creator->name }} @if ($flow->status === 'pending' && !$flow->is_system_generated && (int) $flow->created_by !== (int) auth()->id()) @can ('approve-cash-flow')
@csrf @method ('PATCH')
@csrf @method ('PATCH')
@endcan @endif
Tidak ada data yang cocok dengan pencarian.
{{ $flows->links('partials.tables.pagination') }}
@endsection