@extends('layouts.admin') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), route('admin.discuss.index')=>__lang('instructor-chat'), '#'=>isset($pageTitle)?$pageTitle:'' ]]) @endsection @section('content')

{{ __lang('question') }}

{{ __lang('on') }} {{ showDate('r',$row->created_at) }} {{ __lang('by') }} {{ $row->name.' '.$row->last_name }} . {{ __lang('recipients') }}: @php if($row->admin==1): @endphp {{ __lang('administrators') }}, @php endif; @endphp @php foreach($accounts as $row2): @endphp {{ $row2->name.' '.$row2->last_name }}, @php endforeach; @endphp

{{ $row->subject }}

{!! clean(nl2br($row->question)) !!}
@csrf
@php if(!empty($total)): @endphp

{{ __lang('replies') }}

@php foreach($paginator as $row): @endphp
{{ __lang('by') }} {{ $row->name }} {{ $row->last_name }} @if($row->role_id==1)({{ __lang('Admin') }})@endif {{ __lang('on') }} {{ showDate('r',$row->created_at) }}

{!! clean(nl2br($row->reply)) !!}

@php endforeach; @endphp
@php endif; @endphp @php // add at the end of the file after the table echo paginationControl( // the paginator object $paginator, // the scrolling style 'sliding', // the partial to use to render the control null, // the route to link to when a user clicks a control link array( 'route' => 'admin/default', 'controller'=>'discuss', 'action'=>'viewdiscussion', 'id'=>$row->id ) ); @endphp
@endsection @section('footer') @endsection