@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Transaction Journal Vouchers') @section('css') @endsection @section('content')

Log Transaction Journal Vouchers

Journal Entry : {{ date('d-m-Y', strtotime($log_gl_journal->journal_entry)) }} Created Date : {{ $log_gl_journal->created_at->format('d-m-Y') }}
Reference No : {{ $log_gl_journal->reference_no }} Created By : {{ $log_gl_journal->old_user->nama }}
Description : {{ $log_gl_journal->description }}
@php $total_debet = 0; $total_credit = 0; $total_ending_balance = 0; @endphp @if ($log_gl_journal_voucher->isNotEmpty()) @foreach ($log_gl_journal_voucher as $data) @php $total_debet += $data->debet; $total_credit += $data->credit; $total_ending_balance = ($total_debet - $total_credit); @endphp @endforeach @else @endif
Account-No Description Debet Credit Remark Change By Change Date
{{ @$data->account_no }} {{ @$data->description }} {{ ribuanDuaAngkaBelakangKoma(@$data->debet) }} {{ ribuanDuaAngkaBelakangKoma(@$data->credit) }} {{ @$data->remark ?? '-' }} {{ @$data->user->nama ?? '-' }} {{ @$data->updated_at ? @$data->updated_at->format('d-m-Y') : '-' }}
No Data
TOTAL {{ ribuanDuaAngkaBelakangKoma($total_debet) }} {{ ribuanDuaAngkaBelakangKoma($total_credit) }}
BALANCE {{ ribuanDuaAngkaBelakangKoma($total_ending_balance) }}

@endsection @section('js') @endsection