{{-- Page Header --}} {{-- Content Grid --}}
{{-- Main Details --}}
{{-- Task Information --}}

Task Information

Task Name
{{ $timeLog->task->title }}
Team Member
{{ $timeLog->admin->name }}
{{-- Time Details --}}

Time Details

Start Time
{{ $timeLog->start_time->format('M d, Y h:i A') }}
@if($timeLog->end_time)
End Time
{{ $timeLog->end_time->format('M d, Y h:i A') }}
@endif
Status
@if($timeLog->is_running) Running @else Completed @endif
{{-- Sidebar --}}
{{-- Duration Card --}}

Duration

{{ $timeLog->formatted_duration }}
@php $workingSeconds = $timeLog->working_seconds; if ($workingSeconds >= 3600) { echo number_format($workingSeconds / 3600, 2) . ' hours'; } elseif ($workingSeconds >= 60) { echo floor($workingSeconds / 60) . ' min ' . ($workingSeconds % 60) . ' sec'; } else { echo $workingSeconds . ' seconds'; } @endphp
{{-- Billing Info --}} @if($timeLog->is_billable)

Billing

Hourly Rate
₹{{ number_format($timeLog->hourly_rate, 2) }}
Billable Amount
₹{{ number_format($timeLog->billable_amount, 2) }}
Billed Status
@if($timeLog->is_billed) Billed @else Unbilled @endif
@endif
{{-- Start Location Section --}} @if($timeLog->has_location)

Start Location

{{ $timeLog->start_time->format('M d, Y - h:i A') }} View on Map
{{-- IP Address --}} @if($timeLog->ip_address)
IP Address
{{ $timeLog->ip_address }}
@endif {{-- GPS Coordinates --}}
GPS Coordinates
{{ number_format($timeLog->latitude, 6) }}, {{ number_format($timeLog->longitude, 6) }}
{{-- Accuracy --}} @if($timeLog->location_accuracy)
Accuracy
±{{ round($timeLog->location_accuracy) }} meters
@endif {{-- Address --}} @if($timeLog->location_address)
Address
{{ $timeLog->location_address }}
@endif
{{-- Google Maps Embed --}}
@else {{-- No Start Location Data --}}

No Start Location Data

Start location was not recorded for this time log.

@endif {{-- End Location Section --}} @if($timeLog->has_end_location)

End Location

@if($timeLog->end_time) {{ $timeLog->end_time->format('M d, Y - h:i A') }} @endif View on Map
{{-- IP Address --}} @if($timeLog->end_ip_address)
IP Address
{{ $timeLog->end_ip_address }}
@endif {{-- GPS Coordinates --}}
GPS Coordinates
{{ number_format($timeLog->end_latitude, 6) }}, {{ number_format($timeLog->end_longitude, 6) }}
{{-- Accuracy --}} @if($timeLog->end_location_accuracy)
Accuracy
±{{ round($timeLog->end_location_accuracy) }} meters
@endif {{-- Address --}} @if($timeLog->end_location_address)
Address
{{ $timeLog->end_location_address }}
@endif
{{-- Google Maps Embed --}}
@elseif($timeLog->end_time && !$timeLog->is_running) {{-- No End Location Data (but timer was stopped) --}}

No End Location Data

End location was not recorded when the timer was stopped.

@endif