@extends('layouts.app') @section('title','Organization') @section('content') @can('organization.manage') Add organization unit@endcan @if(\App\Support\ModulePages::page()==='index')
Structure & effective date filters
@php($uiRows1=\App\Support\ListView::rows($units,'org_units'))
@forelse($uiRows1 as $unit)@php($v=$unit->at($date))@empty@endforelse
Organization unitCodeTypeParentStatusHistory
{{ $v?->name ?? 'Scheduled for a future date' }}{{ $unit->code }}{{ ucwords(str_replace('_',' ',$unit->kind)) }}{{ $parents->firstWhere('id',$v?->parent_id)?->code ?? '—' }}{{ !$v?'Scheduled':($v->active?'Active':'Inactive') }}View

Your organization starts here

Add your company, then its branches, departments, and teams.

@endif @can('organization.manage')@if(in_array(\App\Support\ModulePages::page(),['create']))

Create organization unit

One consistent structure, from group to team

@include('organization.unit-form',['unit'=>null])
@endif@endcan @can('organization.manage')@if(in_array(\App\Support\ModulePages::page(),['bulk']))

Bulk status change

Applies new effective versions to up to 100 units

@csrf

All changes are saved together. The date must follow the latest version of every selected unit.

@endif@endcan @endsection