@extends('layouts.main') @section('stylesheets') @endsection @section('content')
{{ Breadcrumbs::render('edituser', $user->id) }}

Edit User {{$user->firstname}},{{$user->lastname}}

@if ($errors->any())
Whoops! There were some problems with your input.

@endif @csrf
@csrf
isActive == 1) checked @endif>
@csrf

Attach New Units to User

@include('superadmin.modals.attach_units',['user' => $user])

No

Unit Name

View Name

Is Default

Actions

@foreach ($user->units as $unit)

{{ $unit->id }}

{{ $unit->name }}

{{ $unit->acronym }}

@if($unit->pivot->is_default){{$unit->pivot->is_default}}@endif

@csrf
@csrf @method('DELETE')
@endforeach

No

Role Name

View Name

Action

@foreach ($roles as $role)

{{ $role->id }}

{{ $role->name }}

{{ $role->view_name }}

@csrf @method('DELETE')
@endforeach
@csrf

Microservice

User Code

@foreach($user->microservices as $microservice)

{{ $microservice->view_name }}

@endforeach @foreach($user->microservicesNotBound() as $microservice)

{{ $microservice->view_name }}

@endforeach
@csrf

Property

Value

@if(!is_null($user->profile)) @if(!empty($user->profile->data)) @foreach($user->profile->data as $key => $data)

{{ $key }}

@endforeach @endif @endif @foreach($user->propertiesNotBound() as $data)

{{$data}}

@endforeach
@if($user->work_relation_id === 2)
@if($contract_data!= null)

Database id: {{$contract_data->id}}

@if($contract_data->created_at === null)

Created at: -

@else

Created at: {{ \Carbon\Carbon::parse($contract_data->created_at)->format('d/m/Y') }}

@endif

Updated at: {{ \Carbon\Carbon::parse($contract_data->updated_at)->format('d/m/Y') }}

@else

Δεν βρέθηκε σύμβαση

@endif @csrf
@if($contract_data!= null) @foreach($contract_data as $key => $data) @if($key == 'id' || $key == 'created_at' || $key == 'updated_at') @continue @endif
@endforeach @endif
@endif
@endsection @section('javascripts') @endsection