@extends('layouts.template.main') @section('content')
@if (session('success')) @endif @if (session('error')) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Thông tin đăng ký OT {{ $overtime->status }}
Nhân viên: {{ $overtime->employee->name }} ({{ $overtime->employee->email }})
Ngày đăng ký OT: {{ \Carbon\Carbon::parse($overtime->date)->format('d/m/Y') }}
Thời gian bắt đầu: {{ \Carbon\Carbon::parse($overtime->ot_start)->format('H:i:s') }}
Thời gian kết thúc: {{ \Carbon\Carbon::parse($overtime->ot_start)->format('H:i:s') }}
Số giờ OT: {{ number_format($overtime->hours, 0) }}
{{-- @if ($leave->status == 'Pending')
@csrf @method('PUT')
@if (auth()->user()->hasRole('manager') || auth()->user()->hasRole('employee'))

* Approvals are only available for Admin and HR

@endif
@endif --}}
@endsection