@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 per', ['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) profit : 0; if ($any): ?>
|---|---|---|---|---|---|
| {{ dateId($date = $year . '-' . $month . '-' . $dateNumber) }} | {{ $any ? $reports[$dateNumber]->count : 0 }} | {{ formatRp($any ? $reports[$dateNumber]->cashin : 0) }} | {{ formatRp($any ? $reports[$dateNumber]->cashout : 0) }} | {{ 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')) }} |