</tr> <tr> <td><label>Randevu Tarihi</label></td> <td><input type="date" class="form-control" name="randevuTarihi" min="<?php echo $tarih; ?> " max="<?php echo $maxTarih; ?> " required autofocus/></td> </tr> <tr> <td><label>Saat</label></td> <?php $hours = Hour::all(); ?> <td> <select name="saat" class="form-control"> <?php foreach ($hours as $hour) { echo '<option value="' . $hour->id . '">' . $hour->hours . '</option>'; } ?> </select> </td> </tr> <tr> <td><label>Mesajınız</label></td>
static function hourList() { $hours = Hour::all(); return $hours; }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function publicIndex() { $hours = Hour::all(); return view('hours.publicIndex', ['hours' => $hours]); }