message-read.blade.php 3.34 KB
@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