2021-08-22 20:15:58 +08:00
|
|
|
@extends('layouts.simple')
|
2015-07-29 03:57:13 +08:00
|
|
|
|
2017-08-26 22:41:33 +08:00
|
|
|
@section('body')
|
2016-12-04 02:35:40 +08:00
|
|
|
|
2018-05-28 17:33:38 +08:00
|
|
|
<div class="container small">
|
2019-02-02 19:41:41 +08:00
|
|
|
|
2019-02-18 01:52:42 +08:00
|
|
|
<div class="my-s">
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('entities.breadcrumbs', ['crumbs' => [
|
2019-02-02 19:41:41 +08:00
|
|
|
$page->book,
|
|
|
|
$page->chapter,
|
|
|
|
$page,
|
2019-02-18 01:52:42 +08:00
|
|
|
$page->getUrl('/delete') => [
|
|
|
|
'text' => trans('entities.pages_delete'),
|
|
|
|
'icon' => 'delete',
|
|
|
|
]
|
2019-02-02 19:41:41 +08:00
|
|
|
]])
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card content-wrap auto-height">
|
|
|
|
<h1 class="list-heading">{{ $page->draft ? trans('entities.pages_delete_draft') : trans('entities.pages_delete') }}</h1>
|
|
|
|
|
2023-12-11 20:33:20 +08:00
|
|
|
@if($usedAsTemplate)
|
2023-12-11 23:55:43 +08:00
|
|
|
<p class="text-warn">{{ trans('entities.pages_delete_warning_template') }}</p>
|
2022-12-03 01:43:51 +08:00
|
|
|
@endif
|
2019-02-02 19:41:41 +08:00
|
|
|
|
2019-02-16 23:05:18 +08:00
|
|
|
<div class="grid half v-center">
|
|
|
|
<div>
|
|
|
|
<p class="text-neg">
|
|
|
|
<strong>
|
|
|
|
{{ $page->draft ? trans('entities.pages_delete_draft_confirm'): trans('entities.pages_delete_confirm') }}
|
|
|
|
</strong>
|
|
|
|
</p>
|
2019-02-02 19:41:41 +08:00
|
|
|
</div>
|
2019-02-16 23:05:18 +08:00
|
|
|
<div>
|
|
|
|
<form action="{{ $page->getUrl() }}" method="POST">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
<input type="hidden" name="_method" value="DELETE">
|
|
|
|
<div class="form-group text-right">
|
|
|
|
<a href="{{ $page->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>
|
2019-08-25 19:40:04 +08:00
|
|
|
<button type="submit" class="button">{{ trans('common.confirm') }}</button>
|
2019-02-16 23:05:18 +08:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-08-26 22:41:33 +08:00
|
|
|
</div>
|
2015-07-29 03:57:13 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|