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

@push('title') View  Messages @endpush
@section('css')
    <!-- DataTables -->
    <link href="{{ asset('/assets/libs/datatables/datatables.min.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('/assets/libs/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet"
        type="text/css">
@endsection
@section('content')

    @component('components.breadcrumb')
        @slot('li_1') Dashboards @endslot
        @slot('title') View  Messages @endslot
    @endcomponent
    
    
    
    
   <div class="row">
       
       
       @foreach($threads as $msg)
        <div class="col-12">
            
            <div class="mb-3">

                <div class="card">
                    

                    <div class="card-body">
                        <div class="media mb-4">
                            <img class="d-flex me-3 rounded-circle avatar-sm" src="{{asset('storage/images/user/avatar/'.$msg->sender->company->image.'')}}"
                                alt="Generic placeholder image">
                            <div class="media-body">
                                <h5 class="font-size-14 mt-1">{{$msg->sender->name}}</h5>
                                <small class="text-muted">{{$msg->sender->company->name}}</small>
                            </div>
                        </div>

                        <h4 class="mt-0 font-size-16">{{$msg->thread->subject}}</h4>
                        {!! $msg->description !!}
                        <hr />

      

                        <h4 class="mt-0 font-size-6">{{$msg->created_at}}</h4>
                    </div>

                </div>
            </div>
            <!-- card -->

        </div>
        
       @endforeach
       
       
       {{ $threads->onEachSide(5)->links() }}
    </div>
    
@endsection
@section('script')
    <!-- Required datatable js -->
    <script src="{{ asset('/assets/libs/datatables/datatables.min.js') }}"></script>
    <script src="{{ asset('/assets/libs/jszip/jszip.min.js') }}"></script>
    <script src="{{ asset('/assets/libs/pdfmake/pdfmake.min.js') }}"></script>
    <!-- Datatable init js -->
    <script src="{{ asset('/assets/libs/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
    
@endsection