вы можете использовать onchange в jquery, например
$("#img1").change(function(e){
$("#file_name").val($("#img1").val().split('\\').pop().split('/').pop(););
});
, добавить эту строку в html
Использовать @append вместо @endsection
@forelse($collection as $item)
some text
@section('section_name')
// link to stylesheet
@append
@empty
// something went wrong
@endforelse