Из нашего чата я обновил ответ.Должно работать следующее в вашем контроллере:
public function insertSchedule(Request $request)
{
Schedule::create([
'employee_no' => $request->input('hidEmployeeno'),
'last_name' => $request->input('hidEmployeeLast'),
'first_name' => $request->input('hidEmployeeFirst'),
'date_today' => $request->input('dateToday'),
'time_in' => $request->input('timeIn'),
'time_out' => $request->input('timeOut'),
]);
}
Затем вам нужно обновить форму до чего-то вроде следующего, обратите внимание, что тег Form принадлежит каждой строке, которую вы хотите вставить.
<div class="row">
<div class="form-group col-md-12">
<small>Employee No. and Name: </small><b><i> {{ $employee->employee_no }} : {{ $employee->last_name }}, {{ $employee->first_name }}</i></b>
<hr>
</div>
</div>
@php
$today = today();
$dates = [];
for($i=1; $i < $today->daysInMonth + 1; ++$i) {
$dates[] = \Carbon\Carbon::createFromDate($today->year, $today->month, $i)->format('F-d-Y');
}
@endphp
<table class="table">
<thead>
<tr>
<th>DATE TODAY</th>
<th>TIME IN</th>
<th>TIME OUT</th>
<th>ACTION</th>
</tr>
</thead>
<tbody>
@foreach($dates as $date)
{!! Form::open(['action' => 'Admin\EmployeeFilemController@insertSchedule', 'method' => 'POST']) !!}
<input type="hidden" name="hidEmployeeno" value='<?php echo $employee->employee_no ?>'>
<input type="hidden" name="hidEmployeeLast" value='<?php echo $employee->last_name ?>'>
<input type="hidden" name="hidEmployeeFirst" value='<?php echo $employee->first_name ?>'>
<tr>
<td><b>{{ $date }}</b></td>
<input type="hidden" name="dateToday" value="{{ $date }}">
<td><input type="time" name="timeIn" class="form-control col-md-10"></td>
<td><input type="time" name="timeOut" class="form-control col-md-10"></td>
<td>{{Form::button('<i class="fa fa-clock"> SET TIME</i>', ['type' => 'submit','class' => 'btn btn-warning btn-sm', 'style'=>"display: inline-block;"])}}</td>
</tr>
{!! Form::close() !!}
@endforeach
</tbody>
</table>