-
Dashboard
- @if ( $currentUserRole == 'admin' ) {{'All Projects'}} @else {{'Your Projects'}} @endif Add Project
@if(Session::has('success'))
×
{!! session('success') !!}
@endif
S.no. |
Title |
Description |
Project PI |
Start Date |
End Date |
Actions |
{{ csrf_field() }}
@if( isset($projects) && count($projects) > 0 )
@if ( $currentUserRole == 'admin' )
@foreach($projects as $k => $v)
{{ $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
|
@endforeach
@else
@if( isset($projects) && count($projects) > 0 )
@foreach($projects as $k => $v)
@if($v['project_det'])
{{ $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'])) }} |
|
|
@endif
@endforeach
@endif
@endif
@endif
@if( count($projects)==0 )
No records found
@endif
@if(count($projects) > 0)
{{ $projects->links() }}
@endif