错误页面
This commit is contained in:
parent
c5c7ac3c8a
commit
89e4a8749b
@ -4,6 +4,11 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
<h3>{{ $workOrder->title }}</h3>
|
||||
<x-work-order-status :status="$workOrder->status"></x-work-order-status>
|
||||
<a href="{{ route('admin.work-orders.show', $workOrder) }}">查看工单</a>
|
||||
|
||||
|
||||
<form method="post" action="{{ route('admin.work-orders.update', $workOrder) }}">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
@ -13,16 +18,30 @@
|
||||
<input type="text" class="form-control" id="title" name="title" value="{{ $workOrder->title }}">
|
||||
</div>
|
||||
|
||||
{{-- <div class="form-group">--}}
|
||||
{{-- <textaera name="title">--}}
|
||||
{{-- {{ $workOrder->title }}--}}
|
||||
{{-- </textaera>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- 修改状态 --}}
|
||||
<div class="form-group">
|
||||
<label for="status" class="col-sm-2 col-form-label">状态</label>
|
||||
<select class="form-control" id="status" name="status">
|
||||
<option value="open" {{ $workOrder->status == 'open' ? 'selected' : '' }}>已开启</option>
|
||||
<option value="closed" {{ $workOrder->status == 'closed' ? 'selected' : '' }}>关闭</option>
|
||||
<option value="user_read" {{ $workOrder->status == 'closed' ? 'selected' : '' }}>用户已读</option>
|
||||
<option value="user_replied" {{ $workOrder->status == 'closed' ? 'selected' : '' }}>用户已回复</option>
|
||||
|
||||
<option value="replied" {{ $workOrder->status == 'closed' ? 'selected' : '' }}>已回复</option>
|
||||
<option value="read" {{ $workOrder->status == 'closed' ? 'selected' : '' }}>已读</option>
|
||||
|
||||
<option value="in_progress" {{ $workOrder->status == 'closed' ? 'selected' : '' }}>处理中</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary mt-3">修改</button>
|
||||
|
||||
</form>
|
||||
|
||||
{{-- <hr />--}}
|
||||
{{-- <form method="post" action="{{ route('admin.work-orders.destroy', $workOrder) }}">--}}
|
||||
{{-- @csrf--}}
|
||||
{{-- @method('DELETE')--}}
|
||||
{{-- <button type="submit" class="btn btn-danger mt-3">删除</button>--}}
|
||||
{{-- </form>--}}
|
||||
@endsection
|
||||
|
@ -11,6 +11,7 @@
|
||||
<th>标题</th>
|
||||
<th>模块</th>
|
||||
<th>发起者</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
</thead>
|
||||
|
||||
@ -37,7 +38,9 @@ class="module_name"
|
||||
<td>
|
||||
<a href="{{ route('admin.users.edit', $workOrder->user_id) }}">{{ $workOrder->user->name }}</a>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<x-work-order-status :status="$workOrder->status"></x-work-order-status>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ route('admin.work-orders.edit', $workOrder) }}"
|
||||
class="btn btn-primary btn-sm">编辑</a>
|
||||
|
@ -4,11 +4,11 @@
|
||||
|
||||
@section('content')
|
||||
<h3>{{ $workOrder->title }}</h3>
|
||||
<a href="{{ route('admin.work-orders.edit', $workOrder) }}">编辑此工单</a>
|
||||
<h5>{{ \Illuminate\Mail\Markdown::parse($workOrder->content) }}</h5>
|
||||
|
||||
<x-work-order-status :status="$workOrder->status"></x-work-order-status>
|
||||
|
||||
<p>在这里,您无法回复工单,只能够查看。</p>
|
||||
<div class="mt-3">
|
||||
<!-- replies -->
|
||||
<h4>对话记录</h4>
|
||||
@ -31,4 +31,8 @@
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
|
||||
<p>在这里,您无法回复工单,只能够查看。</p>
|
||||
|
||||
@endsection
|
||||
|
@ -54,7 +54,7 @@
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@if ($errors->any())
|
||||
@if (isset($errors) && $errors->any())
|
||||
<div>
|
||||
<div class="alert alert-danger d-flex align-items-center alert-dismissible fade show" role="alert">
|
||||
<svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Danger:">
|
||||
|
5
resources/views/errors/401.blade.php
Normal file
5
resources/views/errors/401.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Unauthorized'))
|
||||
@section('code', '401')
|
||||
@section('message', __('Unauthorized'))
|
5
resources/views/errors/403.blade.php
Normal file
5
resources/views/errors/403.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Forbidden'))
|
||||
@section('code', '403')
|
||||
@section('message', __($exception->getMessage() ?: 'Forbidden'))
|
5
resources/views/errors/404.blade.php
Normal file
5
resources/views/errors/404.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Not Found'))
|
||||
@section('code', '404')
|
||||
@section('message', __('Not Found'))
|
5
resources/views/errors/419.blade.php
Normal file
5
resources/views/errors/419.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Page Expired'))
|
||||
@section('code', '419')
|
||||
@section('message', __('Page Expired'))
|
5
resources/views/errors/429.blade.php
Normal file
5
resources/views/errors/429.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Too Many Requests'))
|
||||
@section('code', '429')
|
||||
@section('message', __('Too Many Requests'))
|
5
resources/views/errors/500.blade.php
Normal file
5
resources/views/errors/500.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Server Error'))
|
||||
@section('code', '500')
|
||||
@section('message', __('Server Error'))
|
5
resources/views/errors/503.blade.php
Normal file
5
resources/views/errors/503.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
@extends('errors::minimal')
|
||||
|
||||
@section('title', __('Service Unavailable'))
|
||||
@section('code', '503')
|
||||
@section('message', __('Service Unavailable'))
|
7
resources/views/errors/minimal.blade.php
Normal file
7
resources/views/errors/minimal.blade.php
Normal file
@ -0,0 +1,7 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="col-md-8">
|
||||
<h3>@yield('code') - @yield('message')</h3>
|
||||
</div>
|
||||
@endsection
|
Loading…
Reference in New Issue
Block a user