-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add prev and next month buttons
- Loading branch information
Showing
5 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 13 additions & 9 deletions
22
resources/views/transactions/partials/index_filters.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
{{ Form::open(['method' => 'get', 'class' => 'form-inline']) }} | ||
{!! Form::text('query', request('query'), ['class' => 'form-control form-control-sm mr-2', 'placeholder' => __('transaction.search_text')]) !!} | ||
{{ Form::select('date', get_dates(), $date, ['class' => 'form-control form-control-sm mr-2', 'placeholder' => '--']) }} | ||
{{ Form::select('month', get_months(), $month, ['class' => 'form-control form-control-sm mr-2']) }} | ||
{{ Form::select('year', get_years(), $year, ['class' => 'form-control form-control-sm mr-2']) }} | ||
{{ Form::select('category_id', $categories, request('category_id'), ['placeholder' => __('category.all'), 'class' => 'form-control form-control-sm mr-2']) }} | ||
{{ Form::select('partner_id', $partners, request('partner_id'), ['placeholder' => __('partner.all'), 'class' => 'form-control form-control-sm mr-2']) }} | ||
{!! Form::text('query', request('query'), ['class' => 'form-control form-control-sm mr-1', 'placeholder' => __('transaction.search_text')]) !!} | ||
{{ Form::select('date', get_dates(), $date, ['class' => 'form-control form-control-sm mr-1', 'placeholder' => '--']) }} | ||
{{ Form::select('month', get_months(), $month, ['class' => 'form-control form-control-sm mr-1']) }} | ||
{{ Form::select('year', get_years(), $year, ['class' => 'form-control form-control-sm mr-1']) }} | ||
{{ Form::select('category_id', $categories, request('category_id'), ['placeholder' => __('category.all'), 'class' => 'form-control form-control-sm mr-1']) }} | ||
{{ Form::select('partner_id', $partners, request('partner_id'), ['placeholder' => __('partner.all'), 'class' => 'form-control form-control-sm mr-1']) }} | ||
<div class="form-group mt-4 mt-sm-0"> | ||
{{ Form::submit(__('app.submit'), ['class' => 'btn btn-primary btn-sm mr-2']) }} | ||
{{ link_to_route('transactions.index', __('app.reset'), [], ['class' => 'btn btn-secondary btn-sm mr-2']) }} | ||
{{ link_to_route('transactions.exports.csv', __('transaction.download'), request()->all(), ['class' => 'btn btn-info btn-sm']) }} | ||
{{ Form::submit(__('app.submit'), ['class' => 'btn btn-primary btn-sm mr-1']) }} | ||
{{ link_to_route('transactions.index', __('app.reset'), [], ['class' => 'btn btn-secondary btn-sm mr-1']) }} | ||
{{ link_to_route('transactions.exports.csv', __('transaction.download'), request()->all(), ['class' => 'btn btn-info btn-sm mr-1']) }} | ||
</div> | ||
<div class="form-group"> | ||
{{ link_to_route('transactions.index', __('report.prev_month'), ['month' => $prevMonthDate->format('m'), 'year' => $prevMonthDate->format('Y')], ['class' => 'btn btn-sm btn-secondary mr-1']) }} | ||
{{ link_to_route('transactions.index', __('report.next_month'), ['month' => $nextMonthDate->format('m'), 'year' => $nextMonthDate->format('Y')], ['class' => 'btn btn-sm btn-secondary']) }} | ||
</div> | ||
{{ Form::close() }} |