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

{{ $profil->nama }}

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


Laporan Laba Rugi

@if($bulan != '')

{{ $bulan }}

@endif
@php($saldo = 0) @foreach($akun_pendapatan as $value) @foreach($value->list_akun as $item) @php($saldo += $item['saldo']) @endforeach @endforeach @foreach($akun_pengeluaran as $value) @foreach($value->list_akun as $item) @php($saldo -= $item['saldo']) @endforeach @endforeach
@for($i = 1; $i < strlen($item['kode_tampil']); $i++)   @endfor {{ $item['kode_tampil'] . ' - ' . $item['nama'] }} @if(count(explode('.', $item['kode_tampil'])) > 1) {{ format_number($item['saldo']) }} @endif
@for($i = 1; $i < strlen($item['kode_tampil']); $i++)   @endfor {{ $item['kode_tampil'] . ' - ' . $item['nama'] }} @if(count(explode('.', $item['kode_tampil'])) > 1) {{ format_number($item['saldo']) }} @endif
Total Laba Bersih {{ format_number($saldo) }}
@endsection