@extends('layout.main') @section('title', 'Daftar Transaksi') @section('prev-page') Home @endsection @section('other-styles') @endsection @section('content') @php $panel_colapse = !empty($input->key) || !empty($input->category) || !empty($input->account) || !empty($input->from) || !empty($input->to) ? '' : 'panel-collapsed'; @endphp
Cari Berdasarkan
@php $searchQuery = '?submit=Cari'; @endphp
@csrf @php if (!empty($input->key)) { $searchQuery .= '&key=' . $input->key; } @endphp
@php if (!empty($input->from)) { $searchQuery .= '&from=' . $input->from; } if (!empty($input->to)) { $searchQuery .= '&to=' . $input->to; } @endphp
@php if (!empty($defaultAccount)) { $searchQuery .= '&account=' . $defaultAccount; } @endphp
@if (!empty($summary))
Kas Keuangan
PIC Kredit Debet Saldo
{{ $summary->name }} Rp{{ number_format($summary->kredit, 0, ',', '.') }} Rp{{ number_format($summary->debet, 0, ',', '.') }} Rp{{ number_format($summary->kredit - $summary->debet, 0, ',', '.') }}
@endif
Daftar Transaksi
@php $newParam = []; if (!empty($input->account)) { $newParam['account'] = $input->account; } @endphp
@forelse($transactions as $transaction) @empty @endforelse
ID Transaksi Waktu Akun Kategori Kredit Debet Saldo Faktur Keterangan  
{{ $transaction->number }} {{ date_format(date_create($transaction->created), 'd M Y H:i:s') }} {{ $transaction->account_name }} @php $thisSearchQuery = $searchQuery . '&category=' . $transaction->category_id; @endphp {{ mb_strimwidth(strip_tags($transaction->category_name), 0, 35, '...') }} @if (!empty($transaction->approval_id)) @endif @if ($transaction->type_id == 1) Rp{{ number_format($transaction->amount, 0, ',', '.') }}@else{{ '0' }} @endif @if ($transaction->type_id == 2) Rp{{ number_format($transaction->amount, 0, ',', '.') }}@else{{ '0' }} @endif Rp{{ number_format($transaction->deposit, 0, ',', '.') }} {!! $transaction->receipt_type_icon !!} @if (empty($transaction->description)) {{ '-' }} @else @php $description = str_replace("\"", "\'\'", $transaction->description); $description = nl2br($description); @endphp {{ mb_strimwidth(strip_tags($transaction->description), 0, 30, '...') }} @endif @if (!empty($transaction->receipt_file)) @endif @if (strtotime($transaction->created) > strtotime('-6 hours'))
@endif
Belum ada data.
@if (!empty($metadata->links)) @endif
@endsection @section('other-scripts') @endsection