@extends('layouts.app') @section('title', '通訊錄') @push('styles') @endpush @section('content')

通訊錄

資料來自每個人的個人資訊,手機/生日/座位請到個人資訊自行填寫
@if ($birthdayThisMonth->isNotEmpty())
{{ now()->month }} 月壽星: @foreach ($birthdayThisMonth as $u) {{ $u->birthday->format('n/j') }} {{ $u->name }} @endforeach
@endif
全部 @foreach ($departments as $d) {{ $d }} @endforeach
@foreach ($groups as $dept => $members)
{{ $dept }} {{ $members->count() }}
@foreach ($members as $u) @php $haystack = mb_strtolower(implode(' ', array_filter([ $u->name, $u->email, $u->phone, $u->position, $u->seat, $dept, $u->birthday?->format('m/d'), $u->birthday?->format('n/j'), ]))); @endphp @php // portal 沒有個人主頁(profile.show),有這條路由才給連結 $pu = Route::has('profile.show') ? route('profile.show', $u) : 'javascript:void(0)'; @endphp
@if ($u->avatarUrl()) @else {{ mb_substr($u->name, 0, 1) }} @endif
{{ $u->name }}
{{ $u->position ?: '—' }}
@if ($u->phone){{ $u->phone }}@else未填寫@endif
@if ($u->birthday){{ $u->birthday->format('n/j') }}@else未填寫@endif
@if ($u->seat){{ $u->seat }}@else未填寫@endif
@endforeach
@endforeach
找不到符合的同仁
@endsection @push('scripts') @endpush