@extends('layouts.app') @section('title', __('report.daily', ['date' => dateId($date)])) @section('content') @php $dt = Carbon\Carbon::parse($date); @endphp {{ Form::open(['method' => 'get', 'class' => 'form-inline well well-sm']) }} {{ Form::label('date', __('report.view_daily_label'), ['class' => 'control-label']) }} {{ Form::text('date', $date, ['required', 'class' => 'form-control', 'style' => 'width:100px']) }} {{ Form::submit(__('report.view_report'), ['class' => 'btn btn-info btn-sm']) }} {{ link_to_route('reports.payments.daily', __('report.today'), [], ['class' => 'btn btn-default btn-sm']) }} {{ link_to_route( 'reports.payments.monthly', __('report.view_monthly'), ['month' => monthNumber($dt->month), 'year' => $dt->year], ['class' => 'btn btn-default btn-sm'] ) }} {{ Form::close() }}
@forelse($payments as $key => $payment) in_out == 0 ? $total - $payment->amount : $total + $payment->amount;?> @empty @endforelse
{{ __('app.table_no') }} {{ __('payment.project') }} {{ __('app.date') }} {{ __('payment.amount') }} {{ __('payment.customer') }} {{ __('payment.description') }} {{ __('app.action') }}
{{ 1 + $key }} {{ $payment->project->present()->projectLink() }} {{ $payment->date }} {{ $payment->present()->amount }} {{ $payment->partner->name }} {{ $payment->description }} [{{ $payment->type() }}] {{ link_to_route( 'payments.show', __('app.show'), [$payment], [ 'title' => __('app.show_detail_title', ['name' => $payment->number, 'type' => __('payment.payment')]), 'target' => '_blank', 'class' => 'btn btn-info btn-xs' ] ) }}
{{ __('payment.not_found') }}
{{ __('app.total') }} {{ formatRp($total) }}  
@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') @endsection