Below is code to get the difference of used time in Laravel with Collective. but this code only counts in 24 hours nevertheless it over a day.
How could I modify my Collective code to achieve my goal? Thanks:)
This code made on Laravel 5.4v and Datatype of $time_used
is DATETIME
.
<div class="form-group">
{!! Form::label('time_used', 'Time Used:') !!}
<p>{!! \Carbon\Carbon::parse($job->deleted_at)->diff(\Carbon\Carbon::parse($job->created_at))->format('%H:%I:%S')!!}</p>
</div>