message-read.blade.php
3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@extends('layout.admin', ['title' => 'Админка - Чтение чужого сообщения'])
@section('script')
@endsection
@section('search')
@endsection
@section('content')
<div class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800">
<label class="block text-sm">
<span class="text-gray-700 dark:text-gray-400">Отправитель</span>
<input name="name1" id="name1" disabled
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
placeholder="Название пункта" value='@php echo (isset($message->user_from->name)) ? $message->user_from->name." (".$message->user_from->id.")" : "Не определен"; @endphp'
/>
</label><br>
<label class="block text-sm">
<span class="text-gray-700 dark:text-gray-400">Получатель</span>
<input name="name2" id="name2" disabled
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
placeholder="Название пункта" value='@php echo (isset($message->user_to->name)) ? $message->user_to->name." (".$message->user_to->id.")" : "Не определен"; @endphp'
/>
</label><br>
<label class="block text-sm">
<span class="text-gray-700 dark:text-gray-400">Текст</span>
<textarea name="text" id="text" disabled
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
placeholder="Текст">{{ $message->text }}</textarea>
</label><br>
<label class="block text-sm">
<span class="text-gray-700 dark:text-gray-400">Дата отправки</span>
<input name="created_at" id="created_at" disabled
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
placeholder="Дата отправки" value="{{ $message->created_at }}"
/>
</label><br>
<label class="block text-sm">
<span class="text-gray-700 dark:text-gray-400">Дата изменения</span>
<input name="updated_at" id="updated_at" disabled
class="block w-full mt-1 text-sm dark:border-gray-600 dark:bg-gray-700 focus:border-purple-400 focus:outline-none focus:shadow-outline-purple dark:text-gray-300 dark:focus:shadow-outline-gray form-input"
placeholder="Дата редактирования" value="{{ $message->updated_at }}"
/>
</label><br>
<a href="{{ route('admin.messages') }}"
class="px-3 py-1 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-md active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple"
style="display: -webkit-inline-box; height: 30px!important;"
>Назад</a>
</div>
@endsection