@extends('layouts.master') @section('contain') {{-- title --}}
@if (isset($user))

Update Company

@else

Add Company

@endif
{{-- end title --}}
{{--

Company Registration Form

--}} @if (isset($user))
@method('put') @else @endif @csrf
@if (isset($user) && isset($user->company) && isset($user->company->departments)) @foreach ($user->company->departments as $department) @endforeach @endif
{{--
--}}
@if (isset($user))
@else @endif
Permissions:
@php $userPermissions = isset($user->rolesCustomRelation[0]['permissions1']) ? $user->rolesCustomRelation[0]['permissions1']->pluck('id')->toArray() : []; $roleId = $user->rolesCustomRelation[0]->id ?? null; @endphp {{ Form::hidden('role_id', $roleId) }} @foreach ($permission as $value) @endforeach
@endsection