@forelse ($tasks as $task) @php $total_econds = $task->totalBookingTimeInSeconds->first()->total_booking_time ?? 0; // Convert total seconds to hours, minutes, and seconds $hours = floor($total_econds / 3600); $minutes = floor(($total_econds % 3600) / 60); $seconds = $total_econds % 60; // Format as H:i format, e.g., 25:30 $total_time_formatted = sprintf('%02d:%02d', $hours, $minutes); @endphp @empty @endforelse
{{ __('Task') }} {{ __('Deadline') }} {{ __('Owner') }} {{ __('Status') }} {{ __('Time spent') }} {{ __('Created at') }}
{!! $task->title_display !!} {{ $task->deadline }} @if(!empty($task->taskOwner)) {{ $task->taskOwner->name }} @endif {{ $task->display_status }} {{ $total_time_formatted }} {{ $task->created_at }}
{{ __('No result found') }}
{{ $tasks->links() }}