@include('new_layouts.header') @push('css-page')
@include('construction_project.side-menu',['hrm_header' => "Project Report"])
{{--

Project

--}} {{-- ///############################## --}} @if(Auth::user()->type == 'company')
{{ Form::open(['route' => ['project_report.index'], 'method' => 'GET', 'id' => 'project_report_submit']) }}
{{ Form::label('users', __('Users'),['class'=>'form-label'])}}
{{ Form::label('status', __('Status'),['class'=>'form-label'])}} {{ Form::select('status', ['' => 'Select Status'] + $status, isset($_GET['status']) ? $_GET['status'] : '', ['class' => 'form-select']) }}
{{ Form::label('start_date', __('Start Date'),['class'=>'form-label'])}} {{ Form::date('start_date', isset($_GET['start_date'])?$_GET['start_date']:'', array('class' => 'form-control month-btn')) }}
{{ Form::label('end_date', __('End Date'),['class'=>'form-label'])}} {{ Form::date('end_date', isset($_GET['end_date'])?$_GET['end_date']:'', array('class' => 'form-control month-btn')) }}
{{ Form::close() }}
@endif {{-- // ################################ --}}
{{-- --}} @if(isset($projects) && !empty($projects) && count($projects) > 0) @foreach ($projects as $key => $project) {{-- --}} @endforeach @else {{-- --}} @endif
{{__('Projects')}} {{__('Start Date')}} {{__('Due Date')}} {{__('Projects Members')}} {{__('Completion')}} {{__('Status')}}{{__('Action')}}
{{ Utility::getDateFormated($project->start_date) }} {{ Utility::getDateFormated($project->end_date) }}
@if(isset($project->users) && !empty($project->users) && count($project->users) > 0) @foreach($project->users as $key => $user) @if($key < 3) avatar) src="{{asset('/storage/uploads/avatar/'.$user->avatar)}}" @else src="{{asset('/storage/uploads/avatar/avatar.png')}}" @endif title="{{ $user->name }}" style="height:36px;width:36px;"> @else @break @endif @endforeach @if(count($project->users) > 3) @endif @else {{ __('-') }} @endif
{{ $project->project_progress()['percentage'] }}
{{ __(\App\Models\Project::$project_status[$project->status]) }} @can('manage project') @endcan @can('edit project') @endcan
{{__('No Projects Found.')}}
@include('new_layouts.footer')