I have an application which on sign in records in time and on sign out records out time.
My table has IN_TIME & OUT_TIME
Example of data within those columns:
IN_TIME = 16:06:46
OUT_TIME = 16:08:07
I have a controller which to my blade template file is showing all attedances for a given person, what I want to do is show the time difference between the two.
See below my current code which currently shows 0
**Time onsite:** {{ date('G:i', strtotime($attrec->out_time)) - date('G:i', strtotime($attrec->in_time)) }}
Is there a reason why I can't get the right figure?