<?php

namespace App\Http\Controllers\Help;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\View\View;

/**
 * 도움말 > 연차휴가/근태관리 컨트롤러
 */
class AttendanceGuideController extends Controller
{
    public function index(Request $request): View|Response
    {
        if ($request->header('HX-Request')) {
            return response('', 200)->header('HX-Redirect', route('help.attendance.index'));
        }

        return view('help.attendance.index');
    }
}
