@extends('layouts.member-not-login') @section('title','Post Approval View') @section('page_title','') @section('page_level_css') @endsection @section('content') @php $textLength = 280; $tableLength = 5; $iconArray = []; foreach (config("const.effect_on_dependent_variable") as $key => $val) { $iconArray[$val['id']] = $val['icon']; } @endphp
@include('member.include.non-pi-post-option-sidebar')

{{$postTitle}}

Hello!

@if(in_array($post->status, ['Approved', 'Declined', 'Edited', 'Archived']))

You have already responded to this request. If you wish to manage this post further, please make a LabPair account. It's free and only takes a few minutes.

@else

A member of your research team has listed you as the principal investigator (PI) on a LabPair post. You'll need to approve this post in order for it to be visible to other researchers. As the Pl, you always have control over the post content and any resulting collaborations. Use the buttons below to edit, decline, or approve the post.

@endif
@if(!in_array($post->status, ['Approved', 'Declined', 'Edited', 'Archived']))
@else
@endif
@include('member.include.post-approve-topbar')

Description

{{$post->description??"-"}}

Principal Investigator

{{$post->PI->name . " " . $post->PI->last_name}}

Submitted for approval : {{\Carbon\Carbon::parse($post->created_at)->format('F d, Y')}}

Approval Status : @if($post->status == 'Approved') Approved : {{\Carbon\Carbon::parse($post->approved_time)->format('F d, Y')}} @elseif($post->status == 'Declined') Declined : {{\Carbon\Carbon::parse($post->approved_time)->format('F d, Y')}} @else Pending @endif

Authors

{{$post->authorids->pluck("full_name")->implode(', ')}}

General Keywords

{{$post->PostKeywords->pluck("keyword")->implode(', ')}}

Legal

@foreach ($post->legal as $val)
@endforeach

HIPPA Protections?

Data/Samples Description

{{$characterization}}

Selection and Exclusion Criteria

@php $stringLength = strlen($post->selection_criteria); @endphp {!! nl2br(substr($post->selection_criteria, 0, $textLength)) !!} @if($stringLength >= $textLength) ... {!! nl2br(substr($post->selection_criteria, $textLength)) !!} @endif

@if($stringLength >= $textLength)
@endif
@if(count($selectGeneList) >= $tableLength)
@endif

Collection Dates

{{$post->collection_date_end ? $post->collection_date_start . " - " . $post->collection_date_end : $post->collection_date_start}}

@if($post->experiment_perform_key == 'Yes')

Study Design Keywords

{{$post->study_design_keyword}}

Experiment Perform Description

@php $stringLength = strlen($post->experiment_perform_description); @endphp {!! nl2br(substr($post->experiment_perform_description, 0, $textLength)) !!} @if($stringLength >= $textLength) ... {!! nl2br(substr($post->experiment_perform_description, $textLength)) !!} @endif

@if($stringLength >= $textLength)
@endif

Variables

variable

Independent Variables

@foreach($independentVariable as $independent)

{{$independent->keyword}}

@endforeach
variable

Dependent Variables

@foreach($dependentVariable as $dependent)

{{$dependent->keyword}}

@endforeach

Controls

@php $stringLength = strlen($post->relevant_control); @endphp {!! nl2br(substr($post->relevant_control, 0, $textLength)) !!} @if($stringLength >= $textLength) ... {!! nl2br(substr($post->relevant_control, $textLength)) !!} @endif

@if($stringLength >= $textLength)
@endif

Additional Endpoints

@php $stringLength = strlen($post->additional_endpoint); @endphp {!! nl2br(substr($post->additional_endpoint, 0, $textLength)) !!} @if($stringLength >= $textLength) ... {!! nl2br(substr($post->additional_endpoint, $textLength)) !!} @endif

@if($stringLength >= $textLength)
@endif

Input

@foreach($inputKeywordList as $keyID => $keyword)

{{$keyword->keyword}}

@if (!empty($keyword->description))
@php $stringLength = strlen($keyword->description); @endphp

- {!! nl2br(substr($keyword->description, 0, $textLength)) !!} @if($stringLength >= $textLength) ... {!! nl2br(substr($keyword->description, $textLength)) !!} @endif

@if($stringLength >= $textLength)
@endif @endif @endforeach

Output

@foreach($outputKeywordList as $keyID => $keyword)

{{$keyword->keyword}}

@if (!empty($keyword->description))
@php $stringLength = strlen($keyword->description); @endphp

- {!! nl2br(substr($keyword->description, 0, $textLength)) !!} @if($stringLength >= $textLength) ... {!! nl2br(substr($keyword->description, $textLength)) !!} @endif

@if($stringLength >= $textLength)
@endif @endif @endforeach

Reaction or Process

@foreach($reactionProcessKeywordList as $keyID => $keyword)

{{$keyword->keyword}}

@if (!empty($keyword->description))
@php $stringLength = strlen($keyword->description); @endphp

- {!! nl2br(substr($keyword->description, 0, $textLength)) !!} @if($stringLength >= $textLength) ... {!! nl2br(substr($keyword->description, $textLength)) !!} @endif

@if($stringLength >= $textLength)
@endif @endif @endforeach

Model

@foreach($modelKeywordList as $keyID => $keyword)

{{$keyword->keyword}}

@if (!empty($keyword->description))
@php $stringLength = strlen($keyword->description); @endphp

- {!! nl2br(substr($keyword->description, 0, $textLength)) !!} @if($stringLength >= $textLength) ... {!! nl2br(substr($keyword->description, $textLength)) !!} @endif

@if($stringLength >= $textLength)
@endif @endif @endforeach

Location Keyword

@foreach($locationKeywordList as $keyID => $keyword)

{{$keyword->keyword}}

@if (!empty($keyword->description))
@php $stringLength = strlen($keyword->description); @endphp

- {!! nl2br(substr($keyword->description, 0, $textLength)) !!} @if($stringLength >= $textLength) ... {!! nl2br(substr($keyword->description, $textLength)) !!} @endif

@if($stringLength >= $textLength)
@endif @endif @endforeach

GIS Coordinates

*{{config("const.post_location_title")}}

@else

No experiment performed - end of study design

@endif

Method

@php $stringLength = strlen($post->method); @endphp {!! nl2br(substr($post->method, 0, $textLength)) !!} @if($stringLength >= $textLength) ... {!! nl2br(substr($post->method, $textLength)) !!} @endif

@if($stringLength >= $textLength)
@endif

Supporting Documentation

@foreach ($methodDocument as $key=>$val )

{{$val->original_name}}

@endforeach

Key Reagents

@foreach ($PostKeyReagent as $val) @endforeach

Final Sample Size

Findings

Additional Details

@php $stringLength = strlen($post->additional_endpoint_detail); @endphp {!! nl2br(substr($post->additional_endpoint_detail, 0, $textLength)) !!} @if($stringLength >= $textLength) ... {!! nl2br(substr($post->additional_endpoint_detail, $textLength)) !!} @endif

@if($stringLength >= $textLength)
@endif

Supporting Documentation

@foreach ($resultDocument as $key => $val )

{{$val->original_name}}

@endforeach

Who can see this post?

{{config("const.post_setting.".$post->who_see.".title")}}

@if($post->status == 'Pending' || $post->status == 'Approved' || $post->status == 'Declined' || $post->status == 'Edited')
@if($post->status == 'Pending')

Your request was Pending {{commonTimeFormat($post->request_time)}} MST {{ commonDateFormat($post->request_time)}}

@endif @if($post->status == 'Approved')

Request approved {{commonTimeFormat($post->approved_time)}} MST {{ commonDateFormat($post->approved_time)}}

@endif @if($post->status == 'Declined')

Your request was declined {{commonTimeFormat($post->declined_time)}} MST {{ commonDateFormat($post->declined_time)}}

@endif @if($post->status == 'Edited')

Your request was edited {{commonTimeFormat($post->declined_time)}} MST {{ commonDateFormat($post->declined_time)}}

@endif
@endif
@endsection @section('page_level_js') @endsection @push('footerscript') @endpush