Files
sam-manage/resources/views/dashboard/index.blade.php
hskwon 2a9b697baf UI 개선: 테넌트 선택 헤더 이동 및 역할 권한 관리 개선
- 테넌트 선택을 각 페이지에서 헤더로 통합 이동
- 페이지 제목 이모지 제거 및 상단 여백(mt-6) 축소
- 역할 권한 관리 페이지 레이아웃을 다른 페이지와 통일
- 메뉴명 스타일 개선 (depth 들여쓰기, └ 기호 적용)
- 상위 메뉴 컬럼 제거로 테이블 간소화
- RolePermissionService에 depth 계산 로직 추가
- pagination.js를 body 끝으로 이동하여 로딩 오류 해결
- 역할 선택 UI를 셀렉트박스에서 버튼 형태로 변경
- 역할 버튼 hover 효과 개선 (선택된 버튼 가독성 향상)

변경된 파일:
- resources/views/partials/header.blade.php: 테넌트 선택 UI 추가
- resources/views/dashboard|menus|users|departments|permissions|roles/index.blade.php: tenant-selector 제거, 여백 축소
- resources/views/layouts/app.blade.php: pagination.js 위치 변경
- app/Services/RolePermissionService.php: depth 계산 로직 추가
- resources/views/role-permissions/: 역할 권한 관리 페이지 개선
- routes/web.php, routes/api.php: 역할 권한 관리 라우트 추가
2025-11-25 15:21:48 +09:00

68 lines
3.5 KiB
PHP

@extends('layouts.app')
@section('title', '대시보드')
@section('page-title', '대시보드')
@section('content')
<!-- Welcome Card -->
<div class="bg-white rounded-lg shadow overflow-hidden mt-6">
<div class="p-6">
<h2 class="text-2xl font-bold text-gray-900 mb-2">환영합니다!</h2>
<p class="text-gray-600">{{ auth()->user()->name ?? 'User' }}, MNG 관리자 패널에 로그인하셨습니다.</p>
<div class="my-6 border-t border-gray-200"></div>
<!-- Stats Grid -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<div class="bg-gray-50 rounded-lg p-4 border border-gray-200">
<div class="text-sm font-medium text-gray-500 mb-1">사용자 이메일</div>
<div class="text-lg font-semibold text-gray-900">{{ auth()->user()->email }}</div>
</div>
<div class="bg-gray-50 rounded-lg p-4 border border-gray-200">
<div class="text-sm font-medium text-gray-500 mb-1">로그인 시간</div>
<div class="text-lg font-semibold text-gray-900">{{ now()->format('Y-m-d H:i:s') }}</div>
</div>
<div class="bg-gray-50 rounded-lg p-4 border border-gray-200">
<div class="text-sm font-medium text-gray-500 mb-1">상태</div>
<div class="text-lg font-semibold text-green-600">활성</div>
</div>
</div>
</div>
</div>
<!-- Quick Actions (예시) -->
<div class="mt-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="bg-white rounded-lg shadow p-6 hover:shadow-lg transition-shadow">
<h3 class="text-lg font-semibold text-gray-900 mb-2">사용자 관리</h3>
<p class="text-sm text-gray-600 mb-4">시스템 사용자를 관리합니다.</p>
<a href="#" class="inline-flex items-center text-primary hover:underline">
바로가기
<svg class="w-4 h-4 ml-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
</svg>
</a>
</div>
<div class="bg-white rounded-lg shadow p-6 hover:shadow-lg transition-shadow">
<h3 class="text-lg font-semibold text-gray-900 mb-2">시스템 설정</h3>
<p class="text-sm text-gray-600 mb-4">시스템 환경을 설정합니다.</p>
<a href="#" class="inline-flex items-center text-primary hover:underline">
바로가기
<svg class="w-4 h-4 ml-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
</svg>
</a>
</div>
<div class="bg-white rounded-lg shadow p-6 hover:shadow-lg transition-shadow">
<h3 class="text-lg font-semibold text-gray-900 mb-2">통계 리포트</h3>
<p class="text-sm text-gray-600 mb-4">시스템 통계를 확인합니다.</p>
<a href="#" class="inline-flex items-center text-primary hover:underline">
바로가기
<svg class="w-4 h-4 ml-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
</svg>
</a>
</div>
</div>
@endsection