@extends('layouts.app') @section('title', 'Warehouse Staff') @section('content')

Warehouse Staff

Add people who work at this warehouse and choose the pages they can open.

Add staff
Clear
@if($staff->isEmpty())

No warehouse staff yet

Add a staff member for this office, then choose which pages they can use.

Add staff
@else
@foreach($staff as $member) @endforeach
Staff Email Pages Status Added Actions
{{ $member->name }}
Warehouse Staff
{{ $member->email }} @php $pageNames = $member->permissionLinks ->map(function ($link) { return optional($link->permission)->name; }) ->filter() ->values(); @endphp @if($pageNames->isEmpty()) No pages @else {{ $pageNames->implode(', ') }} @endif @if($member->status) Active @else Inactive @endif {{ optional($member->created_at)->format('d M Y') }} Edit
@if($staff->hasPages())
{{ $staff->links('pagination::bootstrap-4') }}
@endif @endif
@endsection