@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.sales.daily', __('report.today'), [], ['class' => 'btn btn-default btn-sm']) }} {{ link_to_route( 'reports.sales.monthly', __('report.view_monthly'), ['month' => monthNumber($dt->month), 'year' => $dt->year], ['class' => 'btn btn-default btn-sm'] ) }} {{ Form::close() }}
@forelse($transactions as $key => $transaction) @empty @endforelse
{{ __('app.table_no') }} {{ __('app.date') }} {{ __('report.omzet') }} {{ __('app.action') }}
{{ 1 + $key }} {{ dateId($transaction->created_at->format('Y-m-d')) }} {{ formatRp($transaction->total) }} {{ link_to_route( 'transactions.show', __('app.show'), [$transaction], [ 'title' => __('app.show_detail_title', ['name' => $transaction->number, 'type' => trans('transaction.transaction')]), 'target' => '_blank', 'class' => 'btn btn-info btn-xs' ] ) }}
{{ __('transaction.not_found') }}
{{ __('app.total') }} {{ formatRp($transactions->sum('total')) }}  
@endsection @section('ext_css') {{ Html::style(url('css/plugins/jquery.datetimepicker.css')) }} @endsection @section('script') {{ Html::script(url('js/plugins/jquery.datetimepicker.js')) }} @endsection