@extends('layouts.app') @section('title', '編輯帳號') @push('styles') @endpush @section('content') @php $roleMeta = [ 'admin' => ['label' => '最高管理者', 'bg' => '#fee2e2', 'color' => '#b91c1c'], 'supervisor' => ['label' => '主管', 'bg' => '#fef3c7', 'color' => '#92400e'], 'user' => ['label' => '一般使用者', 'bg' => '#f0fdf4', 'color' => '#15803d'], ]; $rm = $roleMeta[$user->role] ?? ['label' => $user->role, 'bg' => '#f1f5f9', 'color' => '#475569']; @endphp
返回帳號清單
@if($errors->any())
@endif
{{-- ══ Sidebar ══ --}} {{-- ══ Content ══ --}}
{{-- ── 基本資訊 ── --}}
@csrf @method('PUT')

基本資訊

帳號登入資訊與顯示名稱

登入帳號,不可修改
@error('name')
{{ $message }}
@enderror
@error('position')
{{ $message }}
@enderror
@error('employee_no')
{{ $message }}
@enderror
取消
{{-- ── 角色與部門 ── --}}
@csrf @method('PUT')

角色與部門

系統權限等級與組織分類

目前角色
{{ $rm['label'] }}
@if(auth()->user()->isAdmin())
@error('role')
{{ $message }}
@enderror
@else @endif
@error('department')
{{ $message }}
@enderror
{{-- ── 出勤設定(管理者限定)── --}} @if(auth()->user()->isAdmin())
@csrf @method('PUT')

出勤設定

班制、到職日與出勤規則(管理員限定)

週五提早半小時下班(若出勤設定中已啟用)
漏打卡提醒與出勤統計的起算日
其他設定
attendance_exempt ?? false) ? 'checked' : '' }}>
主管等免打卡人員,不列入出缺席統計與工時計算
is_contractor ?? false) ? 'checked' : '' }}>
勾選後,出勤統計預設排除此人員
timesheet_required ?? false) ? 'checked' : '' }}>
開啟後,工時總表必定列出此人員欄位
@endif {{-- ── 修改密碼 ── --}}
@csrf @method('PUT')

修改密碼

留空則保留目前密碼不變

@error('password')
{{ $message }}
@enderror
至少 12 碼,需含大寫、小寫、數字、特殊字元
@push('scripts') @endpush @endsection