Migrate Form::open and Form::close on activity report page

This commit is contained in:
Marcus Moore 2025-02-12 12:14:00 -08:00
parent ef3112e526
commit 215fe501ac
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -7,13 +7,13 @@
@stop
@section('header_right')
{{ Form::open(['method' => 'post', 'class' => 'form-horizontal']) }}
<form method="POST" action="{{ route('reports.activity.post') }}" accept-charset="UTF-8" class="form-horizontal">
{{csrf_field()}}
<button type="submit" class="btn btn-default">
<x-icon type="download" />
{{ trans('general.download_all') }}
</button>
{{ Form::close() }}
</form>
@stop
{{-- Page content --}}

View file

@ -390,7 +390,7 @@ Route::group(['middleware' => ['auth']], function () {
[ReportsController::class, 'getActivityReport']
)->name('reports.activity');
Route::post('reports/activity', [ReportsController::class, 'postActivityReport']);
Route::post('reports/activity', [ReportsController::class, 'postActivityReport'])->name('reports.activity.post');
Route::get(
'reports/unaccepted_assets/{deleted?}',