Finance overview page added to admin with monthly breakdown #130
This commit is contained in:
12
resources/views/admin/finances/scripts.blade.php
Normal file
12
resources/views/admin/finances/scripts.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@section('scripts')
|
||||
<script>
|
||||
$(document).ready(() => {
|
||||
const select_id = "select#month_select";
|
||||
$(select_id).change((e) => {
|
||||
const date = $(select_id + " option:selected").val();
|
||||
const location = window.location.toString().split('?')[0];
|
||||
window.location = location + '?month='+date;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user