{{ __('partner.partner_type_donor') }}
{{ __('dashboard.dashboard') }} {{ __('donor.donor') }} {{ Setting::get('masjid_name') }}.
{{ Form::open(['method' => 'get', 'class' => 'form-inline justify-content-center mt-3 mx-3']) }}
{{ Form::select('book_id', ['' => '-- '.__('book.all').' --'] + $availableBooks, optional($selectedBook)->id, ['class' => 'form-control mr-1', 'onchange' => 'submit()']) }}
{{ Form::select('year', get_years(), $selectedYear, ['class' => 'form-control mr-1', 'onchange' => 'submit()']) }}
{{ Form::select('month', ['00' => '-- '.__('time.month').' --'] + get_months(), $selectedMonth, ['class' => 'form-control mr-1', 'onchange' => 'submit()']) }}
@if ($selectedMonth == '00')
{{ link_to_route('donors.index', __('report.prev_year'), ['year' => $selectedYear - 1, 'month' => '00'], ['class' => 'btn btn-gray mt-2 mr-1']) }}
{{ link_to_route('donors.index', __('report.this_year'), ['year' => today()->format('Y'), 'month' => '00'], ['class' => 'btn btn-gray mt-2 mr-1']) }}
{{ link_to_route('donors.index', __('report.next_year'), ['year' => $selectedYear + 1, 'month' => '00'], ['class' => 'btn btn-gray mt-2 mr-1']) }}
{{ link_to_route('donors.index', __('report.this_month'), [], ['class' => 'btn btn-secondary mt-2 mr-1']) }}
@else
@livewire('prev-month-button', ['routeName' => 'donors.index', 'buttonClass' => 'btn btn-secondary mt-2 mr-1'])
{{ link_to_route('donors.index', __('report.this_month'), [], ['class' => 'btn btn-secondary mt-2 mr-1']) }}
@livewire('next-month-button', ['routeName' => 'donors.index', 'buttonClass' => 'btn btn-secondary mt-2 mr-1'])
{{ link_to_route('donors.index', __('report.this_year'), ['year' => today()->format('Y'), 'month' => '00'], ['class' => 'btn btn-gray mt-2 mr-1']) }}
@endif
@can('create', new App\Transaction)
{{ link_to_route('donor_transactions.create', __('donor.add_donation'), [], ['class' => 'btn btn-success mt-2']) }}
@endcan
{{ Form::close() }}
@livewire('donors.total-income-from-partner', ['book' => $selectedBook, 'year' => $selectedYear, 'month' => $selectedMonth])