@extends('org.layout.adminPanel') @section('title', 'Department') @section('section') @php $user = !empty($assign_to) ? $assign_to->user : ''; $permission = !empty($assign_to) ? $assign_to->permissions->toArray() : []; // pre(Session::all()); @endphp Department / {{ $dep->name }} / Assign / Form @endsection @section('css') {{-- css --}} @endsection @section('content') @isset($orgmsg) @endisset {{-- content --}}

{{ $dep->name }} - Manager

Department Manager

@if (!empty(Session::get('err'))) @endif
@csrf {{--
--}} @if (empty($assign_to))
Type and click magnifying glass to search for existing user

or add new user

{{--
--}} {{--
OR
--}}
@endif @if (!isset($id))
@error('firstname') @enderror
@error('lastname') @enderror
@error('email') @enderror @endif
@php if (empty($assign_to)) { $ORGID = Session::get('org_id') ?? ''; if (empty($ORGID)) { $ORGINFO = Helper::navigationPath(decode($org_location_id), 'division'); $ORGID = $ORGINFO['organisation']['id']; } } @endphp @endsection @section('js') {{-- js --}} @if (empty($assign_to)) @endif @endsection