to be string code example
Example 1: htmlspecialchars() expects parameter 1 to be string, array given (View: C:\wamp64\www\DMS\resources\views\roadschedule\all_schedule_on_calender.blade.php)
$seat_data[$i] = [
'name' => $seat[$first]['name'],
'id' => $seat[$first]['id'], ];
Example 2: htmlspecialchars() expects parameter 1 to be string, array given (View: C:\wamp64\www\DMS\resources\views\roadschedule\all_schedule_on_calender.blade.php)
$name = empty($seat[$first]['name']) ? $seat[$first]['name'] : $seat_no;