@php $time = \Carbon\Carbon::createFromFormat('H:i:s',$row->per_patient_time)->format('H:i') @endphp @if($time > '00:59:00') {{$time ." hours"}} @else {{\Carbon\Carbon::createFromFormat('H:i:s',$row->per_patient_time)->format('i'). ' minutes'}} @endif