@extends('layouts.admin') @section('page-title') {{__('Projects')}} @endsection @section('links') @if(\Auth::guard('client')->check()) @else @endif @endsection @php $logo=\App\Models\Utility::get_file('users-avatar/'); @endphp @section('action-button') @auth('web') @if(isset($currentWorkspace) && $currentWorkspace->creater->id == Auth::id()) @endif @endauth @endsection @section('content')
@if($projects && $currentWorkspace)
@foreach ($projects as $project)
@if($project->is_active) {{ $project->name }} @else {{ $project->name }} @endif
@if($project->is_active) {{ $project->name }} @else {{ $project->name }} @endif
@auth('web') @endauth
@if($project->status == 'Finished')
{{ __('Finished')}}
@elseif($project->status == 'Ongoing')
{{ __('Ongoing')}}
@else
{{ __('OnHold')}}
@endif

{{ __('Due Date:')}} {{$project->end_date}}

{{ $project->description }}

MEMBERS
@foreach($project->users as $user) @if($user->pivot->is_active) {{$user->name}}avatar) src="{{asset($logo.$user->avatar)}}" @else avatar="{{ $user->name }}" @endif> @endif @endforeach
{{$project->countTask()}}

{{ __('Tasks')}}

{{$project->countTaskComments()}}

{{ __('Comments')}}

@endforeach @auth('web') @if(isset($currentWorkspace) && $currentWorkspace->creater->id == Auth::id()) @endif @endauth
@else

404

{{ __('Page Not Found') }}
@endif
@endsection @push('css-page') @endpush @push('scripts') @endpush