samedi 24 juin 2017

Laravel how to get current Time and Date value

I`m developing an Attendance Management system.so that my supervisor ask me to develop following view to get attendance time and date value.

enter image description here Few requirements i need. 1.All the records need to be saved in the database based on Trainee Id.according to that view if one having above ID check the box and then press the mark button that time value and Trainee id must be saved in the database as on time.

2.Then if once mark it Date value also need to be saved in the database. 3.Then again check it and press the mark button it must go their as Off time.only 2 records need to be allowed otherwise their can be many on off values.

can anyone suggest me the relevant controller function for that?

here is the relevant above view

`

               <th>Trainee ID</th>
                <th>Name with Initials</th> 
                <th>Time</th>
                <th>Mark Here!</th>
              </thead>

              <tbody>
                @foreach($items as $item)

            <tr>

             <td></td>
              <td></td>


                <td>
                <label><input type="checkbox" value="">&nbsp; Time</label>
              </td>

                <td>
                <a class="btn btn-info" href="Bankdetails/">Mark Here</a>
              </td>
          </tr>
                @endforeach

              </tbody>

      </table>

Please help me.`



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2sCFPO3
via IFTTT

Aucun commentaire:

Enregistrer un commentaire