Current File : //home/tradevaly/public_html/resources/views/user/pages/inbox_view.blade.php
@extends('user.ayaan.master')

@push('style')
    
@endpush

@section('content')
<div class="container-fluid">
    
    
    
    @foreach($offers as $msg)
    @if($msg->sender_id == Auth::user()->id)
    <div class="container-fluid">
        <div class="container-fluid">
        @endif
    
    <div class="row">
    <div class="col-md-12">
      <div class="card">
        <div class="card-header card-header-info card-header-icon">
          <div class="card-icon">
           <img src="{{asset('storage/images/user/avatar/'.$msg->sender->company->image.'')}}" alt="{{$msg->sender->company->name}}" height="50px">
          </div>
          <h4 class="card-title">@if($msg->sender_id != Auth::user()->id) {{$msg->sender->company->name}} @else Myself @endif ({{date('d F, Y h:i', strtotime($msg->created_at))}})</h4>
        </div>
        <div class="card-body">
          {!! $msg->description !!}
          <br/>
          @if(!empty($msg->seen_at)) Seen At : {{ date('d F, Y h:i', strtotime($msg->seen_at)) }} @endif
        </div>
      </div>
  </div>
</div>

 @if($msg->sender_id == Auth::user()->id)
    </div></div>
        @endif
    @endforeach
    
    
    
    <div class="container-fluid">
  <div class="row">
    <div class="col-md-6">
      <div class="card">
        <div class="card-header card-header-icon card-header-info">
          <h4 class="card-title">Reply
          </h4>
        </div>
        <div class="card-body">
          <form action="{{route('user.inbox.view', $thread->id)}}" method="POST" enctype="multipart/form-data">@csrf
            <div class="row">
               <div class="col-md-6 mb-5">
                <div class="form-group">
                  <h3 class="mb-3">Enter Messages</h3>
                  <textarea  id="editor" name="des" class="form-control mb-5" placeholder="Enter Details"></textarea>
                </div>
              </div>
            </div>
            <button type="submit" class="btn btn-info pull-right">Reply</button>
            <div class="clearfix"></div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
    
    
@stop

@push('script')
   
@endpush