HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/MdnDirecteur/hours.komma.cloud/resources/views/settings/users/index.blade.php
@extends('settings.master')
@section('title')
    <h1>Alle gebruikers</h1>
@stop

@section('content1')
    <div class="col-lg-12">
        <hr>
        @if (\Session::has('message'))
            @if(!empty(Session::get('message')['url']))
                <div class="alert alert-info">
                    {{ Session::get('message')['message'] }}
                    <a class="pull-right btn btn-default" href="{{ Session::get('message')['url'] }}"
                       style="margin-top: -7px">Herstel</a>
                </div>
            @else
                <div class="alert alert-info">{{ Session::get('message') }}</div>
            @endif
        @endif
        <div class="col-lg-12">
            <table class="table">
                <thead>
                <tr>
                    <th>Naam / email</th>
                    <th>Contract</th>
                    <th>Laatst aangemeld</th>
                    <th>Rol</th>
                    <th>Acties</th>
                </tr>
                </thead>
                <tbody>
                @foreach($users as $user)
                    <tr @if(!empty($user->deleted_at))class="active"@endif>
                        <td>
                            @if(empty($user->deleted_at)) <a href="/users/{{$user->id}}">{{$user->name}}</a> @else {{$user->name}} @endif
                            <br/>
                            {{$user->email}}
                        </td>
                        <td>{{$user->contract}}</td>
                        <td>{{\Carbon\Carbon::parse($user->last_login)->format('d-m-Y G:i:s')}}</td>
                        <td>{{$user->Roles->first()->label}}</td>
                        <td>
                        @if(empty($user->deleted_at))
{{--                            <td>{!! Btn::reset($user->id, $name = $user->name) !!}</td>--}}
                            <a href="/users/{{$user->id}}" style="font-size: 13px;"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> wachtwoord</a><br/>
                            <a href="/instellingen/users/{{$user->id}}/edit" style="font-size: 13px;"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span> instellingen</a><br/>

                        @else
                            <a href="/instellingen/users/{{$user->id}}/restore" class="btn btn-warning">Activeer</a>
                        @endif
                        </td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>
    </div>
@stop