source: resources/views/dashboard/departments/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: 3.7 KB
RevLine 
[194a359]1@extends('layouts.app')
2
3@section("title", "Departments")
4
5@section('pageTitle', 'Department 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/departments') }}">Departments</a>
19 </li>
20 <li class="breadcrumb-item active" aria-current="page">Departments</li>
21 </ol>
22 </nav>
23 <div class="dropdown">
24 <a href="{{ route("dashboard.departments.create") }}" class="btn btn-primary text-white">
25 Add department
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>--}}
39{{-- <div class="custom-control custom-checkbox">--}}
40{{-- <input type="checkbox" class="custom-control-input" id="user-list-select-all">--}}
41{{-- <label class="custom-control-label" for="user-list-select-all"></label>--}}
42{{-- </div>--}}
43{{-- </th>--}}
44 <th>ID</th>
45 <th>Name</th>
46 <th>Code</th>
47 <th>Created by</th>
48 <th>Creation date</th>
49 <th>Actions</th>
50 </tr>
51 </thead>
52 <tbody>
53 @foreach($departments as $department)
54 <tr>
55 <td>{{$department->id }}</td>
56 <td>{{ $department->name }}</td>
57 <td>{{ $department->code }}</td>
58 <td>{{ $department->getCreatedByName() }}</td>
59 <td>{{ date('d.m.Y', strtotime($department->created_at)) }}</td>
60 <td>
61 <a href="{{ route("dashboard.departments.edit", ["id" => $department->id]) }}" class="text-secondary" data-toggle="tooltip" title="Edit">
62 <i class="ti-pencil"></i>
63 </a>
64 <a href="javascript:void(0)" class="text-danger ml-2" data-action="{{ route("dashboard.departments.destroy", ["id" => $department->id]) }}" data-method="delete" title="Delete">
65 <i class="ti-trash"></i>
66 </a>
67 </td>
68 </tr>
69 @endforeach
70 </tbody>
71 </table>
72 </div>
73 </div>
74 </div>
75 </div>
76 </div>
77
78@endsection
79
80@section('script')
81 <!-- Datatable -->
82 <script src="{{ url('vendors/dataTable/dataTables.min.js') }}"></script>
83
84 <script src="{{ url('assets/js/examples/pages/user-list.js') }}"></script>
85@endsection
Note: See TracBrowser for help on using the repository browser.