@php header("Content-type: application/vnd-ms-excel"); header("Content-Disposition: attachment; filename=Arus Kas ". $bulan .".xls"); @endphp @extends('layouts.blank') @section('title') Laporan Arus Kas @endsection @section('body')

{{ $profil->nama }}

{{ $profil->alamat }}, Telp: {{ $profil->notelp }}


Laporan Arus Kas

@if($bulan != '')

{{ $bulan }}

@endif
@php($total_kredit = 0) @php($total_debit = 0) @php($total = 0) @foreach($kas as $value) @php($total_kredit += $value['total_kredit']) @php($total_debit += $value['total_debit']) @php($total = $total + ($value['total_kredit'] - $value['total_debit'])) @endforeach
@for($i = 1; $i < strlen($value['akun']['kode_tampil']); $i++)   @endfor {{ $value['akun']['text'] }} {{ format_number($value['total_kredit']) }} {{ format_number($value['total_debit']) }} @if($value['total_kredit']-$value['total_debit'] != 0) {{ format_akuntansi($value['total_kredit']-$value['total_debit']) }} @endif
SALDO KAS {{ format_akuntansi($total_kredit) }} {{ format_akuntansi($total_debit) }} {{ format_akuntansi($total) }}
@endsection