@include('layout/backend/_header') @include('layout/backend/_navbar')
@include('layout/backend/_sidebar')

@if ( isset($_GET['s_t']) || isset($_GET['pi_nm']) || isset($_GET['status']) ) @endif
@if( $currentUserRole == 'admin' )
@endif

@if(Session::has('success'))
× {!! session('success') !!}
@endif
{{ csrf_field() }} @if( isset($projects) && count($projects) > 0 ) @if ( $currentUserRole == 'admin' ) @foreach($projects as $k => $v) @endforeach @else @if( isset($projects) && count($projects) > 0 ) @foreach($projects as $k => $v) @if($v['project_det']) @endif @endforeach @endif @endif @endif
S.no. Title Description Project PI Start Date End Date Actions
{{ $k+1+(( ( (isset($_GET['page'])) ? $_GET['page'] : 1 )-1)*10) }} {{ ( ( strlen($v['title']) > 50 ) ? ucfirst( substr($v['title'], 0, 48) ).'...' : ucfirst($v['title']) ) }} {{ ( ( strlen($v['description']) > 50 ) ? ucfirst( substr($v['description'], 0, 48) ).'...' : ucfirst($v['description']) ) }} @php $piIDs = $v['pi_ids']; $i = 0; $total = count($piIDs); @endphp @foreach($piIDs as $pk => $pv) @php $i++; @endphp {{ ' - ' }} {{ getUserNameByID($pv) }} @if ( $i != $total )
@endif @endforeach
{{ date('M, d Y', strtotime($v['start_date'])) }} {{ date('M, d Y', strtotime($v['end_date'])) }}  |  @if( $v['status']==0 )  |  @else  |  @endif
{{ $k+1+(( ( (isset($_GET['page'])) ? $_GET['page'] : 1 )-1)*10) }} {{ ( ( strlen($v['project_det']['title']) > 50 ) ? ucfirst( substr($v['project_det']['title'], 0, 48) ).'...' : ucfirst($v['project_det']['title']) ) }} {{ ( ( strlen($v['project_det']['description']) > 50 ) ? ucfirst( substr($v['project_det']['description'], 0, 48) ).'...' : ucfirst($v['project_det']['description']) ) }} @php $piIDs = $v['project_det']['pi_ids']; $i = 0; @endphp @if ( isset($piIDs) && is_array($piIDs) && count($piIDs) > 1 ) @foreach($piIDs as $pk => $pv) @php $i++; @endphp {{ ' - ' }} {{ getUserNameByID($pv) }} @if ( $i != count($piIDs) )
@endif @endforeach @else {{ ' - ' }} {{ getUserNameByID($piIDs) }} @endif
{{ date('M, d Y', strtotime($v['project_det']['start_date'])) }} {{ date('M, d Y', strtotime($v['project_det']['end_date'])) }}  | 
@if( count($projects)==0 )
No records found
@endif
@if(count($projects) > 0) {{ $projects->links() }} @endif
@include('layout/backend/_footer')