@include('layout/backend/_header') @include('layout/backend/_navbar')
@include('layout/backend/_sidebar')
@if ( !isset($_GET['t']) )

@if ( isset($_GET['ct_nm']) || isset($_GET['t_d']) ) @endif

@endif
{{ csrf_field() }} @if( $projects && count($projects) > 0 ) @foreach( $projects as $k => $v ) @endforeach @endif
Title Project PI Start Date End Date Status
@if ( count($v['project_attachment']) > 0 && $v['project_attachment'][0]['attachment'] ) @else @endif {{$v['title']}} @php $piIDs = $v['pi_ids']; $i = 0; $total = count($piIDs); @endphp @foreach($piIDs as $pk => $pv) @php $i++; @endphp {{ ' - ' }} {{ getUserNameByID($pv) }} ({{getEmailByID($pv)}}) @if ( $i != $total )
@endif @endforeach
{{ date('M, d Y', strtotime($v['start_date'])) }} {{ date('M, d Y', strtotime($v['end_date'])) }} @if( $v['project_status']==0 ) {{'On-going'}} @elseif( $v['project_status']==1 ) {{'Completed'}} @elseif( $v['project_status']==2 ) {{'On-Hold'}} @endif
@if( count($projects)==0 )
No records found
@endif
@if(count($projects) > 0) {{ $projects->links() }} @endif
@include('layout/backend/_footer')