@section('content') @php $jmlTask = $dataHead->jml_task; $jmlTaskDone = $dataHead->jml_task_done; $progress = 0; if($jmlTaskDone>0) { $percentage = ($jmlTaskDone/$jmlTask)*100; $progress = (int)$percentage; } if($progress<50) { $bg = 'bg-danger'; } else if($progress>50 && $progress<85) { $bg = 'bg-warning'; } else { $bg = 'bg-success'; } @endphp
Projects
@if($before) Kembali @elseif($team_role_id) Kembali @else Kembali @endif
@if($dataHead->status_id == 1) {{ $dataHead->status_project }} @elseif($dataHead->status_id == 2) {{ $dataHead->status_project }} @elseif($dataHead->status_id == 3) {{ $dataHead->status_project }} @else {{ $dataHead->status_project }} @endif
Pic
JM
@if($team_role_id == 1 || $team_role_id == 2) Management Meeting @endif Realisasi Budget @if(Auth::user()->role_id == 6) Edit Project @endif @if ($team_role_id == 1 || Auth::user()->role_id == 6) Update Status @endif @if ($dataHead->status_id != 3 && ($team_role_id == 1 || Auth::user()->role_id == 6)) Generate Task @endif
{{ $dataHead->project_detail ?? '' }}
Start Date
{{ ($dataHead->start_date) ? date('d M ,Y', strtotime($dataHead->start_date)) : '' }}
Due Date
{{ ($dataHead->due_date) ? date('d M ,Y', strtotime($dataHead->due_date)) : '' }}
Progress
{{ $progress }}%
{{--
--}}
Budget Rp. {{ number_format($dataHead->budget_amount,0,',','.') }}
Terpakai Rp. {{ number_format($dataHead->budget_amount-$dataHead->outstanding,0,',','.') }}
Sisa Rp. {{ number_format($dataHead->outstanding,0,',','.') }}
{{--
--}}
{{ $dataHead->jml_task ?? 0 }} Tasks @if($team_role_id == 1 || $team_role_id == 2) tap to view @else tap to view @endif
{{--
--}}
{{ $dataHead->jml_comment ?? 0 }} Comments tap to view
{{--
--}} @php $str = $dataHead->foto_member; $no = 0; $arrStr = explode(",",$str); @endphp
@if($arrStr) @foreach ($arrStr as $key => $item) @if($key < 5) @php $itemExplode = explode('|',$item); $no++; @endphp
Pic
@endif @endforeach @php $sisa = count($arrStr) - $no; @endphp @if($sisa > 0)
{{ count($arrStr) - $no }}+
@endif @endif
{{--
--}}

Task Monitoring Terdapat {{ ($totTask) ? $totTask->totonprogress:0 }} Task Berjalan

@if ($dataHead->status_id != 3 && ($team_role_id == 1 || Auth::user()->role_id == 6) ) Add New Member @endif
@foreach($tableHead as $item) @endforeach {{-- --}}
{{$item[0]}} Member Name Jumlah Task Task Selesai Task Belum Selesai Act
@include('content.projects.personil') @include('content.projects.rincianTask') @include('content.projects.formTask') @include('content.projects.commentProject') @include('content.projects.formGenerateTask') @include('content.projects.updateStatusProject') @include('content.projects.editProject') @endsection @section('script') @include('content.projects.actionForm') @endsection