@if ($selectedBook->report_periode_code == 'in_months')
{{ link_to_route(Route::currentRouteName(), __('report.this_month'), Request::except(['year', 'month']), ['class' => 'btn btn-light border bm-btn mr-1']) }}
@livewire('prev-month-button', ['routeName' => Route::currentRouteName(), 'buttonClass' => 'btn btn-light border bm-btn', 'buttonText' => '‹'])
{{ Form::select('month', ['00' => '-- '.__('app.all').' --'] + get_months(), request('month', $startDate->format('m')), ['class' => 'form-control text-center', 'onchange' => 'submit()', 'style' => 'border-radius:0']) }}
@livewire('next-month-button', ['routeName' => Route::currentRouteName(), 'buttonClass' => 'btn btn-light border bm-btn', 'buttonText' => '›'])
{{ Form::select('year', get_years(), $startDate->format('Y'), ['class' => 'form-control mr-1', 'onchange' => 'submit()']) }}
@endif
@if ($selectedBook->report_periode_code == 'in_weeks')
@livewire('prev-week-button', ['routeName' => Route::currentRouteName(), 'buttonClass' => 'btn btn-light border'])
{{ link_to_route(Route::currentRouteName(), __('report.this_week'), Request::except(['start_date', 'end_date']), ['class' => 'btn btn-light border']) }}
@livewire('next-week-button', ['routeName' => Route::currentRouteName(), 'buttonClass' => 'btn btn-light border'])
@endif
@if ($selectedBook->report_periode_code == 'all_time')
{{ __('time.date') }}
{{ Form::text('start_date', $startDate->format('Y-m-d'), ['class' => 'date-select form-control radius mr-1 px-2', 'style' => 'max-width: 100px;', 'onchange' => 'submit()']) }}
{{ Form::text('end_date', $endDate->format('Y-m-d'), ['class' => 'date-select form-control radius mr-1 px-2', 'style' => 'max-width: 100px;', 'onchange' => 'submit()']) }}
{{ link_to_route(Route::currentRouteName(), __('app.reset'), Request::except(['start_date', 'end_date']), ['class' => 'btn btn-light border bm-btn mr-1']) }}
@endif
{{ Form::hidden('active_book_id', request('active_book_id')) }}
{{ Form::hidden('nonce', request('nonce')) }}
{{ Form::close() }}