source: resources/views/dashboard/users/index.blade.php@ 194a359

develop
Last change on this file since 194a359 was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago

added departments, edited users and added user settings

  • Property mode set to 100644
File size: 4.5 KB
Line 
1@extends('layouts.app')
2
3@section("title", "Users")
4
5@section('pageTitle', 'User List')
6
7@section('head')
8 <!-- Datatable -->
9 <link rel="stylesheet" href="{{ url('vendors/dataTable/dataTables.min.css') }}" type="text/css">
10@endsection
11
12@section('content')
13
14 <div class="page-header justify-content-between">
15 <nav aria-label="breadcrumb" class="d-flex align-items-start">
16 <ol class="breadcrumb">
17 <li class="breadcrumb-item">
18 <a href="{{ url('dashboard.users') }}">Users</a>
19 </li>
20 <li class="breadcrumb-item active" aria-current="page">User List</li>
21 </ol>
22 </nav>
23 <div class="dropdown">
24 <a href="{{ route("dashboard.users.create") }}" class="btn btn-primary text-white">
25 Add user
26 </a>
27 </div>
28 </div>
29
30 <div class="row">
31 <div class="col-md-12">
32 <div class="card">
33 <div class="card-body">
34 <div class="table-responsive">
35 <table id="user-list" class="table table-lg">
36 <thead>
37 <tr>
38 <th>ID</th>
39 <th>Status</th>
40 <th>Username</th>
41 <th>Name</th>
42 <th>Email</th>
43 <th>Phone Number</th>
44 <th>Registration Date</th>
45 <th>Role</th>
46 <th>Actions</th>
47 </tr>
48 </thead>
49 <tbody>
50 @foreach($users as $user)
51 <tr>
52 <td>{{$user->id }}</td>
53 <td>
54 @if($user->is_confirmed)
55 @if ($user->is_active)
56 <span class="badge bg-success-bright text-success">Active</span>
57 @else
58 <span class="badge bg-danger-bright text-danger">Blocked</span>
59 @endif
60 @else
61 <span class="badge bg-warning-bright text-warning">New user</span>
62 @endif
63 </td>
64 <td>
65 <a href="#">{{$user->name .' '. $user->surname}}</a>
66 </td>
67 <td>{{$user->username}}</td>
68 <td>{{$user->email}}</td>
69 <td>{{$user->mobile_number}}</td>
70 <td>{{ date('d.m.Y', strtotime($user->created_at)) }}</td>
71 <td>{{ $user->role->name }}</td>
72 @if($user->hasRole("Referent") && $user->is_confirmed)
73 <td>
74 <a href="{{ route("dashboard.users.edit", ["id" => $user->id]) }}" class="text-secondary" data-toggle="tooltip" title="Edit">
75 <i class="ti-pencil"></i>
76 </a>
77 <a href="javascript:void(0)" class="text-danger ml-2" data-action="{{ route("dashboard.users.destroy", ["id" => $user->id]) }}" data-method="delete" title="Delete">
78 <i class="ti-trash"></i>
79 </a>
80 </td>
81 @else
82 <td>Not available</td>
83 @endif
84 </tr>
85 @endforeach
86
87
88 </tbody>
89 </table>
90 </div>
91 </div>
92 </div>
93 </div>
94 </div>
95
96@endsection
97
98@section('script')
99 <!-- Datatable -->
100 <script src="{{ url('vendors/dataTable/dataTables.min.js') }}"></script>
101
102 <script src="{{ url('assets/js/examples/pages/user-list.js') }}"></script>
103@endsection
Note: See TracBrowser for help on using the repository browser.