Lager-v3/resources/views/users/edit.blade.php

25 lines
870 B
PHP

@extends('Layouts.master')
@section('content')
<div class="main-container pb-4">
<form method="post" action="{{route('users.update',['user' => $data])}}">
@if($data->loanerType->name != "adUser")
@can("users_edit_username")
@include('Partials.Form.Input.name')
@include('Partials.Form.Input.user')
@endcan
@include('Partials.Form.Input.password')
@endif
@can("users_edit_role")
@if($data->id != Auth::user()->id)
@include('Partials.Form.Input.role')
@endif
@endcan
@include('Partials.Form.Input.Submit.submit_edit')
</form>
@can('users_delete')
@include('Partials.Form.Input.Modal.delete')
@endcan
</div>
@endsection