@extends('layouts.main') @section('page-title') {{ __('Project Detail') }} @endsection @section('page-breadcrumb') {{ __('Project Report') }}, {{ __('Project Details') }} @endsection @section('page-action')
@endsection @php $client_keyword = Auth::user()->hasRole('client') ? 'client.' : ''; @endphp @section('content')
{{ __('Overview') }}
{{ __('Project Name') }}: {{ $project->name }}
{{ __('Project Status') }}: @if ($project->status == 'Finished')
{{ __('Finished') }}
@elseif($project->status == 'Ongoing')
{{ __('Ongoing') }}
@else
{{ __('OnHold') }}
@endif
{{ __('Start Date') }}: {{ company_date_formate($project->start_date) }}
{{ __('Due Date') }}: {{ company_date_formate($project->end_date) }}
{{ __('Total Members') }}: {{ (int) $project->users->count() + (int) $project->clients->count() }}
@php $task_percentage = $project->project_progress()['percentage']; $data = trim($task_percentage, '%'); $status = $data > 0 && $data <= 25 ? 'red' : ($data > 25 && $data <= 50 ? 'orange' : ($data > 50 && $data <= 75 ? 'blue' : ($data > 75 && $data <= 100 ? 'green' : ''))); @endphp
{{ $data }}%
@php $mile_percentage = $project->project_milestone_progress()['percentage']; $mile_percentage = trim($mile_percentage, '%'); @endphp
{{ __('Milestone Progress') }}
{{ __('Task Priority') }}
{{ __('Task Status') }}
{{ __('Users') }}
@foreach ($project->users as $user) @php $hours_format_number = 0; $total_hours = 0; $hourdiff_late = 0; $esti_late_hour = 0; $esti_late_hour_chart = 0; $total_user_task = Workdo\Taskly\Entities\Task::where( 'project_id', $project->id, ) ->whereRaw('FIND_IN_SET(?, assign_to) > 0', [$user->id]) ->get() ->count(); $all_task = Workdo\Taskly\Entities\Task::where( 'project_id', $project->id, ) ->whereRaw('FIND_IN_SET(?, assign_to) > 0', [$user->id]) ->get(); $total_complete_task = Workdo\Taskly\Entities\Task::join( 'stages', 'stages.id', '=', 'tasks.status', ) ->where('project_id', '=', $project->id) ->where('assign_to', '=', $user->id) ->where('stages.complete', '=', '1') ->get() ->count(); @endphp @endforeach
{{ __('Name') }} {{ __('Assigned Tasks') }} {{ __('Done Tasks') }}
{{ $user->name }} {{ $total_user_task }} {{ $total_complete_task }}
{{ __('Milestones') }}
@foreach ($project->milestones as $key => $milestone) @endforeach
{{ __('Name') }} {{ __('Progress') }} {{ __('Cost') }} {{ __('Status') }} {{ __('Start Date') }} {{ __('End Date') }}
{{ $milestone->title }}
{{ $milestone->progress }}%
{{ $milestone->cost }} @if ($milestone->status == 'complete') @else @endif {{ $milestone->start_date }} {{ $milestone->end_date }}
{{ Form::open(['route' => [$client_keyword . 'project_report.show', [$project->id]], 'method' => 'GET', 'id' => 'product_service']) }}
@if (Auth::user()->hasRole('company') || Auth::user()->hasRole('client'))
{{-- --}} {{ Form::select('all_users', $users, isset($_GET['all_users']) ? $_GET['all_users'] : '', ['class' => 'form-control ', 'placeholder' => 'All Users']) }}
@endif
{{-- --}} {{ Form::select('milestone_id', $milestones, isset($_GET['milestone_id']) ? $_GET['milestone_id'] : '', ['class' => 'form-control ', 'placeholder' => 'All Milestones']) }}
{{ Form::close() }}
@if (Auth::user()->hasRole('company') || Auth::user()->hasRole('client')) @endif @foreach ($tasksData as $row) @if (Auth::user()->hasRole('company') || Auth::user()->hasRole('client')) @endif @endforeach
{{ __('Task Name') }} {{ __('Milestone') }} {{ __('Start Date') }} {{ __('Due Date') }}{{ __('Assigned to') }}{{ __('Priority') }} {{ __('Status') }}
{!! $row['title'] !!} {!! $row['milestone'] !!} {!! $row['start_date'] !!} {!! $row['due_date'] !!}{!! $row['user_name'] !!}{!! $row['priority'] !!} {!! $row['status'] !!}

{{ __('Cashflow') }}

{{ Form::label('year', __('Year'), ['class' => 'form-label']) }} {{ Form::select('year', $yearList, isset($_GET['year']) ? $_GET['year'] : '', ['class' => 'form-control select']) }}
{{ __('Report') }} :
{{ __('Monthly Cashflow') }}
{{ __('Duration') }} :
{{ $filter['startDateRange'] . ' to ' . $filter['endDateRange'] }}
{{ __('Income') }}
@foreach ($monthList as $month) @endforeach @foreach ($chartIncomeArr as $i => $income) @endforeach
{{ __('Category') }}{{ $month }}
{{ __('Total Income (Invoice)') }}{{ currency_format_with_sym($income) }}
{{ __('Expense') }}
@foreach ($monthList as $month) @endforeach @foreach ($chartExpenseArr as $i => $expense) @endforeach
{{ __('Category') }}{{ $month }}
{{ __('Total Expenses (Bill)') }}{{ currency_format_with_sym($expense) }}
@foreach ($netProfitArray as $i => $profit) @endforeach
{{ __('Net Profit = Total Income - Total Expense') }}
{{ __('Net Profit') }}{{ currency_format_with_sym($profit) }}
@endsection @push('css') @endpush @push('scripts') @endpush