@extends('layouts.app') @section('title','Warehouses') @section('content')
{{ $company->name }} — locations and access grants
| Warehouse | Code | Branch | Status / actions |
|---|---|---|---|
| {{ $warehouse->name }} | {{ $warehouse->code }} | {{ $branches->firstWhere('id',$warehouse->branch_id)?->name ?? ($warehouse->branch_id ? 'Inactive branch' : 'Company-wide') }} | {{ $warehouse->is_active ? 'Active' : 'Inactive' }}
@if($canManage)
Edit warehouseAccess grantsUsers need both a warehouse grant and warehouses.view permission. Owners and system administrators retain administrative access. @foreach($grants->get($warehouse->id,collect()) as $grant) @endforeach |
| No warehouses available for your current access. | |||