@extends('layouts.app') @section('title', '座位表設定') @push('styles') @endpush @section('content')

座位表設定

{{ auth()->user()->role === 'admin' ? '管理員' : '座位表管理' }}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
@endif {{-- 座位表清單 + 新增 --}}
座位表: @forelse($maps as $m) {{ $m->name }} @empty 尚未建立,先在下方新增一張 @endforelse
@csrf
@if($current)
{{-- 畫布設定 --}}
@csrf @method('PATCH')
@csrf @method('DELETE')
{{-- 工具列 --}}
自動編號
尚未儲存
拖拉方塊移動位置,右下角拖拉調整大小,點一下方塊可在右側修改代碼、椅子方向(選取後按 R 旋轉);把右邊的人員拖到座位上即可安排。先點選會議室再按「桌子/椅子」會直接放進會議室,3D 檢視裡椅子會自動面向最近的桌子。 空位 已安排 會議室 桌子 椅子 物件
{{-- 右側:選取方塊屬性 + 人員 --}}
人員 {{ $users->count() }}
@foreach($users as $u) @php $seated = $seatOfUser[$u->id] ?? null; @endphp
@if($u->avatarUrl()) @else {{ mb_substr($u->name, 0, 1) }} @endif
{{ $u->name }}
{{ $u->department ?? '—' }}{{ $u->position ? '・' . $u->position : '' }}{{ $seated ? '・' . $seated['code'] : '' }}
@endforeach
@endif
@endsection @push('scripts') @if($current) @endif @endpush