Path: blob/1.0-develop/resources/views/admin/users/view.blade.php
7461 views
@extends('layouts.admin')12@section('title')3Manage User: {{ $user->username }}4@endsection56@section('content-header')7<h1>{{ $user->name_first }} {{ $user->name_last}}<small>{{ $user->username }}</small></h1>8<ol class="breadcrumb">9<li><a href="{{ route('admin.index') }}">Admin</a></li>10<li><a href="{{ route('admin.users') }}">Users</a></li>11<li class="active">{{ $user->username }}</li>12</ol>13@endsection1415@section('content')16<div class="row">17<form action="{{ route('admin.users.view', $user->id) }}" method="post">18<div class="col-md-6">19<div class="box box-primary">20<div class="box-header with-border">21<h3 class="box-title">Identity</h3>22</div>23<div class="box-body">24<div class="form-group">25<label for="email" class="control-label">Email</label>26<div>27<input type="email" name="email" value="{{ $user->email }}" class="form-control form-autocomplete-stop">28</div>29</div>30<div class="form-group">31<label for="registered" class="control-label">Username</label>32<div>33<input type="text" name="username" value="{{ $user->username }}" class="form-control form-autocomplete-stop">34</div>35</div>36<div class="form-group">37<label for="registered" class="control-label">Client First Name</label>38<div>39<input type="text" name="name_first" value="{{ $user->name_first }}" class="form-control form-autocomplete-stop">40</div>41</div>42<div class="form-group">43<label for="registered" class="control-label">Client Last Name</label>44<div>45<input type="text" name="name_last" value="{{ $user->name_last }}" class="form-control form-autocomplete-stop">46</div>47</div>48<div class="form-group">49<label class="control-label">Default Language</label>50<div>51<select name="language" class="form-control">52@foreach($languages as $key => $value)53<option value="{{ $key }}" @if($user->language === $key) selected @endif>{{ $value }}</option>54@endforeach55</select>56<p class="text-muted"><small>The default language to use when rendering the Panel for this user.</small></p>57</div>58</div>59</div>60<div class="box-footer">61{!! csrf_field() !!}62{!! method_field('PATCH') !!}63<input type="submit" value="Update User" class="btn btn-primary btn-sm">64</div>65</div>66</div>67<div class="col-md-6">68<div class="box">69<div class="box-header with-border">70<h3 class="box-title">Password</h3>71</div>72<div class="box-body">73<div class="alert alert-success" style="display:none;margin-bottom:10px;" id="gen_pass"></div>74<div class="form-group no-margin-bottom">75<label for="password" class="control-label">Password <span class="field-optional"></span></label>76<div>77<input type="password" id="password" name="password" class="form-control form-autocomplete-stop">78<p class="text-muted small">Leave blank to keep this user's password the same. User will not receive any notification if password is changed.</p>79</div>80</div>81</div>82</div>83</div>84<div class="col-md-6">85<div class="box">86<div class="box-header with-border">87<h3 class="box-title">Permissions</h3>88</div>89<div class="box-body">90<div class="form-group">91<label for="root_admin" class="control-label">Administrator</label>92<div>93<select name="root_admin" class="form-control">94<option value="0">@lang('strings.no')</option>95<option value="1" {{ $user->root_admin ? 'selected="selected"' : '' }}>@lang('strings.yes')</option>96</select>97<p class="text-muted"><small>Setting this to 'Yes' gives a user full administrative access.</small></p>98</div>99</div>100</div>101</div>102</div>103</form>104<div class="col-xs-12">105<div class="box box-danger">106<div class="box-header with-border">107<h3 class="box-title">Delete User</h3>108</div>109<div class="box-body">110<p class="no-margin">There must be no servers associated with this account in order for it to be deleted.</p>111</div>112<div class="box-footer">113<form action="{{ route('admin.users.view', $user->id) }}" method="POST">114{!! csrf_field() !!}115{!! method_field('DELETE') !!}116<input id="delete" type="submit" class="btn btn-sm btn-danger pull-right" {{ $user->servers->count() < 1 ?: 'disabled' }} value="Delete User" />117</form>118</div>119</div>120</div>121</div>122@endsection123124125