source: resources/views/dashboard/users/create.blade.php@ 24a616f

develop
Last change on this file since 24a616f was 24a616f, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

added documents crud, added last_seen_to_user, edited views

  • Property mode set to 100644
File size: 5.7 KB
RevLine 
[194a359]1@extends('layouts.app')
2
3@section("title", "Users - Create new")
4
5@section('pageTitle', 'Create user')
6
7@section('content')
8
9 <div class="page-header">
10 <nav aria-label="breadcrumb" class="d-flex align-items-start">
11 <ol class="breadcrumb">
12 <li class="breadcrumb-item">
13 <a href="{{ url('dashboard/users') }}">Users</a>
14 </li>
15 <li class="breadcrumb-item active" aria-current="page">Create user</li>
16 </ol>
17 </nav>
18 </div>
19
20 <div class="row">
21 <div class="col-md-12">
22
23 <div class="row">
24 <div class="col-lg-12 col-md-12">
25 <div class="tab-content" id="v-pills-tabContent">
26 <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
27 <div class="card">
28 <div class="card-body">
29 <h6 class="card-title">User account data</h6>
[24a616f]30 <form action="{{ route("dashboard.users.store") }}" method="post" accept-charset="utf-8" enctype='multipart/form-data'>
[194a359]31 @csrf
32 <div class="row">
33 <div class="col-md-6">
34 <div class="form-group">
35 <label>Name</label>
36 <input type="text" name="name" value="{{ old('name') }}" class="form-control" placeholder="Name" required>
37 </div>
38 </div>
39 <div class="col-md-6">
40 <div class="form-group">
41 <label>Surname</label>
42 <input type="text" name="surname" value="{{ old('surname') }}" class="form-control" placeholder="Surname" required>
43 </div>
44 </div>
45 </div>
46 <div class="row">
47 <div class="col-md-6">
48 <div class="form-group">
49 <label class="form-label">Username</label>
50 <input type="text" name="username" value="{{ old('username') }}" class="form-control" placeholder="Username" required>
51 </div>
52 </div>
53 <div class="col-md-6">
54 <div class="form-group">
55 <label class="form-label">Role</label>
56 <select class="form-control" name="userRole">
57 @foreach ($roles as $role)
58 <option value="{{ $role->id }}" {{ (old("userRole") == $role->id ? "selected" : "" ) }}>{{ ucfirst($role->name) }}</option>
59 @endforeach
60 </select>
61 </div>
62 </div>
63 </div>
64 <div class="row">
65 <div class="col-md-6">
66 <div class="form-group">
67 <label>Email</label>
68 <input type="email" name="email" value="{{ old('email') }}" class="form-control" placeholder="E-mail" required>
69 </div>
70 </div>
71 <div class="col-md-6">
72 <div class="form-group">
73 <label class="form-label">Mobile Number</label>
74 <input type="text" name="mobile_number" value="{{ old('mobile_number') }}" class="form-control" placeholder="Phone number" autocomplete="off" required>
75 </div>
76 </div>
77
[24a616f]78 </div>
79
80 <div class="row">
81 <div class="col-md-6">
82 <div class="form-group">
83 <label>Avatar</label>
84 <input type="file" name="avatar" value="{{ old('avatar') }}" class="form-control" accept="image/*">
85 </div>
86 </div>
[194a359]87 </div>
88 <input type="submit" value="Save changes" class="submitBtn btn btn-primary pull-right m-10">
89 </form>
90 </div>
91 </div>
92 </div>
93 </div>
94 </div>
95 </div>
96 </div>
97 </div>
98
99@endsection
Note: See TracBrowser for help on using the repository browser.