@props(['mode', 'user' => null])

<div class="form-footer flex space-x-2">
    @if($mode === 'create')
        <a href="{{ route('admin.users.index') }}" class="btn-secondary min-w-[120px] h-[45px]">Hủy bỏ</a>
        <button type="submit" class="btn-primary min-w-[120px] h-[45px]">Tạo Nhân Viên</button>
    @elseif($mode === 'edit')
        <a href="{{ route('admin.users.index') }}" class="btn-secondary min-w-[120px] h-[45px]">Quay lại</a>
        <button type="submit" class="btn-primary min-w-[120px] h-[45px]">Lưu Thay Đổi</button>
    @elseif($mode === 'delete')
        <a href="{{ route('admin.users.index') }}" class="btn-secondary min-w-[120px] h-[45px]">Quay lại</a>
        <button type="submit" class="btn-primary bg-red-600 hover:bg-red-700 min-w-[120px] h-[45px]">Nghỉ việc</button>
    @elseif($mode === 'self')
        <a href="{{ route('user.dashboard') }}" class="btn-secondary min-w-[120px] h-[45px]">Quay lại</a>
    @endif
</div>
{{-- duplicated block removed --}}
