@extends('layouts.master') @section('page_header') Settings @endsection @section('content') {{--Success Message--}} @if(session()->has('success'))

Success!

{{session('success')}}
@endif {{--Error Message--}} @if(session()->has('error'))

Success!

{{session('success')}}
@endif {{--Change Password--}}

Change Password

{!! csrf_field() !!}
@if ($errors->has('current_password')) {{ $errors->first('current_password') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
{{--/Change Password--}} @can('register','App\User') {{--Create new User--}}

Create New User

{!! csrf_field() !!}
@if ($errors->has('user_name')) {{ $errors->first('user_name') }} @endif
@if ($errors->has('user_username')) {{ $errors->first('user_username') }} @endif
@if ($errors->has('user_role')) {{ $errors->first('user_role') }} @endif
@if ($errors->has('user_password')) {{ $errors->first('user_password') }} @endif
@if ($errors->has('user_password_confirmation')) {{ $errors->first('user_password_confirmation') }} @endif
{{--/Create new User--}} @endcan

Clinic's Users

@foreach(\App\Clinic::getCurrentClinic()->users as $user) id===$user->id) class="success" @elseif($user->deactivated()) class="danger" @endif> @endforeach
Name Username Role
{{$user->name}} {{$user->username}} {{$user->role->role}} @can('delete',$user) @endcan
@endsection