You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
3.1 KiB
78 lines
3.1 KiB
@extends('layouts.app')
|
|
|
|
@section('title', 'Laporan Harian : ' . dateId($date))
|
|
|
|
@section('content')
|
|
<?php $dt = Carbon::parse($date); ?>
|
|
|
|
<ul class="breadcrumb hidden-print">
|
|
<li>{{ link_to_route('reports.payments.yearly', 'Laporan Tahun ' . $dt->year, ['year' => $dt->year]) }}</li>
|
|
<li>{{ link_to_route('reports.payments.monthly', getMonths()[monthNumber($dt->month)], ['year' => $dt->year,'month' => monthNumber($dt->month)]) }}</li>
|
|
<li class="active">{{ $dt->format('d') }}</li>
|
|
</ul>
|
|
|
|
{{ Form::open(['method' => 'get','class' => 'form-inline well well-sm']) }}
|
|
{{ Form::label('date', 'Laporan Harian per', ['class' => 'control-label']) }}
|
|
{{ Form::text('date', $date, ['class' => 'form-control','required','style' => 'width:100px']) }}
|
|
{{ Form::submit('Lihat Laporan', ['class' => 'btn btn-info btn-sm']) }}
|
|
{{ link_to_route('reports.payments.daily', 'Hari Ini', [], ['class' => 'btn btn-default btn-sm']) }}
|
|
{{ link_to_route('reports.payments.monthly', 'Lihat Bulanan', ['month' => monthNumber($dt->month), 'year' => $dt->year], ['class' => 'btn btn-default btn-sm']) }}
|
|
{{ Form::close() }}
|
|
|
|
<table class="table table-condensed table-hover">
|
|
<thead>
|
|
<th>{{ trans('app.table_no') }}</th>
|
|
<th class="col-md-2">{{ trans('payment.project') }}</th>
|
|
<th class="col-md-1 text-center">{{ trans('app.date') }}</th>
|
|
<th class="col-md-2 text-right">{{ trans('payment.amount') }}</th>
|
|
<th class="col-md-2 text-center">{{ trans('payment.customer') }}</th>
|
|
<th class="col-md-5">{{ trans('payment.description') }}</th>
|
|
<th class="col-md-1">{{ trans('app.action') }}</th>
|
|
</thead>
|
|
<tbody>
|
|
<?php $total = 0;?>
|
|
@forelse($payments as $key => $payment)
|
|
<tr>
|
|
<td>{{ 1 + $key }}</td>
|
|
<td>{{ $payment->project->present()->projectLink() }}</td>
|
|
<td class="text-center">{{ $payment->date }}</td>
|
|
<td class="text-right">{{ $payment->present()->amount }}</td>
|
|
<td class="text-center">{{ $payment->partner->name }}</td>
|
|
<td>{{ $payment->description }} [{{ $payment->type() }}]</td>
|
|
<td>
|
|
{{ link_to_route('payments.show','Lihat',[$payment->id],['title' => 'Lihat Detail Pembayaran','target' => '_blank','class' => 'btn btn-info btn-xs']) }}
|
|
</td>
|
|
</tr>
|
|
<?php $total = $payment->in_out == 0 ? $total - $payment->amount : $total + $payment->amount; ?>
|
|
@empty
|
|
<tr><td colspan="7">{{ trans('payment.not_found') }}</td></tr>
|
|
@endforelse
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th class="text-right" colspan="3">Jumlah</th>
|
|
<th class="text-right">{{ formatRp($total) }}</th>
|
|
<th colspan="3"></th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
@endsection
|
|
|
|
@section('ext_css')
|
|
{{ Html::style(url('assets/css/plugins/jquery.datetimepicker.css')) }}
|
|
@endsection
|
|
|
|
@section('ext_js')
|
|
{{ Html::script(url('assets/js/plugins/jquery.datetimepicker.js')) }}
|
|
@endsection
|
|
|
|
@section('script')
|
|
<script>
|
|
(function() {
|
|
$('#date').datetimepicker({
|
|
timepicker:false,
|
|
format:'Y-m-d'
|
|
});
|
|
})();
|
|
</script>
|
|
@endsection
|