@extends('template.layout') @section('title', 'Cetak Laporan Auntansi') @section('page-style') @endsection @section('content')
{{$request['judul']}}
Untuk Periode {!! $request['blnstring'] !!} {{-- Untuk Periode yang Berakhir {!! strtoupper($request['tglAkhir']) !!} --}}
@php $nomor = 1; $total = 0; $totalAll = 0; $totalKe = 0; $totalKeAll = 0; $kdmap = ''; @endphp @foreach ($result as $item) @php $total = $total + $item['debet']; $totalAll = $totalAll + $item['kredit']; @endphp @endforeach @if( $request['judul'] == 'LAPORAN OPERASIONAL / LABA - RUGI') @endif
Kode Akun Nama Akun Debit Kredit
@if ($item['type'] == 0) {{ str_replace('0', '', $item['kdmap']) }} @else {{ str_replace('0', '', $item['kdmap']) }} @endif @if ($item['type'] == 0) {{ $item['namamap'] }} @else {!! str_replace('-', '  ', $item['namamap']) !!} @endif {{ number_format($item['debet'], 2, '.', ',') }} {{ number_format($item['kredit'], 2, '.', ',') }}
PENDAPATAN {{ number_format($totalAll, 2, '.', ',') }}
BEBAN {{ number_format($total, 2, '.', ',') }}
TOTAL {{ number_format($totalAll - $total, 2, '.', ',') }}
@endsection