@include('layout.header')
@include('layout.navbar') @include('layout.breadscrum')
@include('layout.sidebar')

{{__('comment.table_title')}}

@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['create_comment'])) @endif

@foreach($comments as $k=>$comment) @endforeach
{{__('comment.table_no')}} {{__('comment.table_action')}} {{__('comment.table_name')}} {{__('comment.table_sample_type')}} {{__('comment.table_department')}} {{__('comment.table_status')}}
{{($k+1) + (($_GET['page'] ?? 1) * 20) - 20}}
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['update_comment'])) @endif @if($comment->record_status_id==0) @else @if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['delete_comment'])) @endif @endif
{{substr($comment->comment_desc,0,50)}}... {{$comment->sample_type->name_en}} {{$comment->sample_type->department->name_en}}
{!! $comments->appends($_GET)->links('pagination.custom') !!}
@include('layout.footer')
@include('layout.common_script')