HEX
Server: Apache/2.4.46 (Ubuntu)
System: Linux localhost 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64
User: root (0)
PHP: 7.4.16
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/property.fieldblaze.com/resources/views/agent/messages/read.blade.php
@extends('frontend.layouts.app')

@section('styles')
@endsection

@section('content')

    <section class="section">
        <div class="container">
            <div class="row">

                <div class="col s12 m3">
                    <div class="agent-sidebar">
                        @include('agent.sidebar')
                    </div>
                </div>

                <div class="col s12 m9">

                    <h4 class="agent-title">READ MESSAGES</h4>
                    
                    <div class="agent-content">
                        
                        <span><strong>From:</strong> <em>{{ $message->name }} < {{ $message->email }} ></em></span> <br>
                        <span><strong>Phone:</strong> {{ $message->phone }}</span>

                        <div class="read-message">
                            <span>Message:</span>
                            <p>{!! $message->message !!}</p>
                        </div>

                        <a href="{{route('agent.message.replay',$message->id)}}" class="btn btn-small indigo waves-effect">
                            <i class="material-icons left">replay</i>
                            <span>Replay</span>
                        </a>

                        <form class="right" action="{{route('agent.message.readunread')}}" method="POST">
                            @csrf
                            <input type="hidden" name="status" value="{{ $message->status }}">
                            <input type="hidden" name="messageid" value="{{ $message->id }}">

                            <button type="submit" class="btn btn-small orange waves-effect">
                                <i class="material-icons left">local_library</i>
                                @if($message->status)
                                    <span>Unread</span>
                                @else 
                                    <span>Read</span>
                                @endif
                            </button>
                        </form>

                    </div>
                </div>

            </div>
        </div>
    </section>

@endsection

@section('scripts')

@endsection