2021-08-22 08:15:58 -04:00
|
|
|
@extends('layouts.simple')
|
2015-08-08 15:05:30 -04:00
|
|
|
|
2017-08-26 12:17:04 -04:00
|
|
|
@section('body')
|
2018-05-28 05:33:38 -04:00
|
|
|
<div class="container small">
|
2015-08-08 15:05:30 -04:00
|
|
|
|
2022-03-26 17:36:05 -04:00
|
|
|
@include('settings.parts.navbar', ['selected' => 'users'])
|
2019-02-03 08:45:45 -05:00
|
|
|
|
2023-03-24 10:43:48 -04:00
|
|
|
<form action="{{ url("/settings/users/{$user->id}") }}" method="POST">
|
|
|
|
{!! csrf_field() !!}
|
2019-02-03 08:45:45 -05:00
|
|
|
|
2023-03-24 10:43:48 -04:00
|
|
|
<div class="card content-wrap auto-height">
|
|
|
|
<h1 class="list-heading">{{ trans('settings.users_delete') }}</h1>
|
2019-02-03 08:45:45 -05:00
|
|
|
|
2023-03-24 10:43:48 -04:00
|
|
|
<p>{{ trans('settings.users_delete_warning', ['userName' => $user->name]) }}</p>
|
2021-12-14 13:47:22 -05:00
|
|
|
|
2023-03-24 10:43:48 -04:00
|
|
|
@if(userCan('users-manage'))
|
|
|
|
<hr class="my-l">
|
2021-01-01 13:31:01 -05:00
|
|
|
|
2023-03-24 10:43:48 -04:00
|
|
|
<div class="grid half gap-xl v-center">
|
|
|
|
<div>
|
|
|
|
<label class="setting-list-label">{{ trans('settings.users_migrate_ownership') }}</label>
|
|
|
|
<p class="small">{{ trans('settings.users_migrate_ownership_desc') }}</p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@include('form.user-select', ['name' => 'new_owner_id', 'user' => null])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2021-01-01 13:31:01 -05:00
|
|
|
|
2023-03-24 10:43:48 -04:00
|
|
|
<hr class="my-l">
|
2019-02-03 08:45:45 -05:00
|
|
|
|
2023-03-24 10:43:48 -04:00
|
|
|
<div class="grid half">
|
|
|
|
<p class="text-neg"><strong>{{ trans('settings.users_delete_confirm') }}</strong></p>
|
|
|
|
<div class="text-right">
|
2019-02-03 08:45:45 -05:00
|
|
|
<input type="hidden" name="_method" value="DELETE">
|
2019-08-04 09:26:39 -04:00
|
|
|
<a href="{{ url("/settings/users/{$user->id}") }}" class="button outline">{{ trans('common.cancel') }}</a>
|
2019-08-25 07:40:04 -04:00
|
|
|
<button type="submit" class="button">{{ trans('common.confirm') }}</button>
|
2023-03-24 10:43:48 -04:00
|
|
|
</div>
|
2019-02-03 08:45:45 -05:00
|
|
|
</div>
|
|
|
|
|
2023-03-24 10:43:48 -04:00
|
|
|
</div>
|
|
|
|
</form>
|
2015-08-08 15:05:30 -04:00
|
|
|
</div>
|
|
|
|
@stop
|