@extends('layouts.app') @section('title', 'Warehouse Staff') @section('content')
Add people who work at this warehouse and choose the pages they can open.
Add a staff member for this office, then choose which pages they can use.
Add staff| Staff | 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 |