@extends('layouts.app') @section('title', 'Laporan Bulanan : ' . $months[$month] . ' ' . $year) @section('content')
{!! Form::open(['method' => 'get', 'class' => 'form-inline well well-sm']) !!} {!! Form::label('month', 'Laporan Bulanan', ['class' => 'control-label']) !!} {!! Form::select('month', $months, $month, ['class' => 'form-control']) !!} {!! Form::select('year', $years, $year, ['class' => 'form-control']) !!} {!! Form::submit('Lihat Laporan', ['class' => 'btn btn-info btn-sm']) !!} {!! link_to_route('reports.payments.monthly', 'Bulan ini', [], ['class' => 'btn btn-default btn-sm']) !!} {!! link_to_route('reports.payments.yearly', 'Lihat Tahunan', ['year' => $year], ['class' => 'btn btn-default btn-sm']) !!} {!! Form::close() !!}| {{ trans('app.date') }} | Jumlah Transfer | Uang Masuk | Uang Keluar | Profit | Pilihan | @foreach(monthDateArray($year, $month) as $dateNumber) count : 0; $cashin = $any ? $reports[$dateNumber]->cashin : 0; $cashout = $any ? $reports[$dateNumber]->cashout : 0; $profit = $any ? $reports[$dateNumber]->profit : 0; ?>
|---|---|---|---|---|---|
| {{ dateId($date = $year . '-' . $month . '-' . $dateNumber) }} | {{ $count }} | {{ formatRp($cashin) }} | {{ formatRp($cashout) }} | {{ formatRp($profit) }} | {!! link_to_route( 'reports.payments.daily', 'Lihat Harian', ['date' => $date], [ 'class' => 'btn btn-info btn-xs', 'title' => 'Lihat laporan harian ' . $date ] ) !!} |
| Jumlah | {{ $reports->sum('count') }} | {{ formatRp($reports->sum('cashin')) }} | {{ formatRp($reports->sum('cashout')) }} | {{ formatRp($reports->sum('profit')) }} |