31 lines
1.7 KiB
PHP
Raw Normal View History

2017-09-14 22:21:00 +03:00
@extends('layouts.admin')
@section('title', trans('reports.summary.expense'))
2018-04-07 12:00:39 +03:00
@section('new_button')
<span class="new-button"><a href="{{ url('reports/expense-summary') }}?print=1&status={{ request('status') }}&year={{ request('year', $this_year) }}" target="_blank" class="btn btn-success btn-sm"><span class="fa fa-print"></span> &nbsp;{{ trans('general.print') }}</a></span>
@endsection
2017-09-14 22:21:00 +03:00
@section('content')
<!-- Default box -->
<div class="box box-success">
<div class="box-header">
2018-04-12 11:59:12 +03:00
<div class="pull-left" style="margin-left: 5px">
2017-12-18 17:14:59 +03:00
<a href="{{ url('reports/expense-summary') }}?year={{ request('year', $this_year) }}"><span class="badge @if (request('status') == '') bg-green @else bg-default @endif">{{ trans('general.all') }}</span></a>
<a href="{{ url('reports/expense-summary') }}?status=paid&year={{ request('year', $this_year) }}"><span class="badge @if (request('status') == 'paid') bg-green @else bg-default @endif">{{ trans('bills.paid') }}</span></a>
<a href="{{ url('reports/expense-summary') }}?status=upcoming&year={{ request('year', $this_year) }}"><span class="badge @if (request('status') == 'upcoming') bg-green @else bg-default @endif">{{ trans('dashboard.payables') }}</span></a>
2017-09-14 22:21:00 +03:00
</div>
{!! Form::open(['url' => 'reports/expense-summary', 'role' => 'form', 'method' => 'GET']) !!}
<div class="pull-right">
2018-08-07 17:35:45 +03:00
@stack('year_input_start')
2017-12-18 17:14:59 +03:00
{!! Form::select('year', $years, request('year', $this_year), ['class' => 'form-control input-filter input-sm', 'onchange' => 'this.form.submit()']) !!}
2018-08-07 17:35:45 +03:00
@stack('year_input_end')
2017-09-14 22:21:00 +03:00
</div>
{!! Form::close() !!}
</div>
2018-04-07 12:00:39 +03:00
@include('reports.expense_summary.body')
2017-09-14 22:21:00 +03:00
</div>
<!-- /.box -->
@endsection