@php $setting = []; if ($project->copylinksetting) { $setting = json_decode($project->copylinksetting); } @endphp @extends('layouts.invoicepayheader') @section('page-title') {{ __('Project: ') . $project->name }} @endsection @section('language-bar') @endsection @push('css') @endpush @section('action-btn') {{Str::upper($lang)}} @endsection @section('content')
@if (isset($setting->basic_details) && $setting->basic_details == 'on') {{ __('Basic details') }}
@endif @if (isset($setting->progress) && $setting->progress == 'on') {{ __('Progress') }}
@endif @if (isset($setting->member) && $setting->member == 'on') {{ __('Members') }}
@endif @if (isset($setting->client) && $setting->client == 'on') {{ __('Clients') }}
@endif @if(module_is_active('Account')) @if (isset($setting->vendor) && $setting->vendor == 'on') {{ __('Vendors') }}
@endif @endif @if (isset($setting->milestone) && $setting->milestone == 'on') {{ __('Milestones') }}
@endif @if (isset($setting->attachment) && $setting->attachment == 'on') {{ __('Files') }}
@endif @if (isset($setting->task) && $setting->task == 'on') {{ __('Task') }}
@endif @if (isset($setting->bug_report) && $setting->bug_report == 'on') {{ __('Bug Report') }}
@endif @if (isset($setting->invoice) && $setting->invoice == 'on') {{ __('Invoice') }}
@endif @if(module_is_active('Account')) @if (isset($setting->bill) && $setting->bill == 'on') {{ __('Bill') }}
@endif @endif @if(module_is_active('Timesheet',$project->created_by)) @if (isset($setting->timesheet) && $setting->timesheet == 'on') {{ __('Timesheet') }}
@endif @endif @if (isset($setting->activity) && $setting->activity == 'on') {{ __('Activity Log') }}
@endif
@if (isset($setting->basic_details) && $setting->basic_details == 'on')

{{ $project->name }}

@if($project->type == 'project')
{{ __('Start Date') }}:
{{ company_date_formate($project->start_date, $project->created_by, $project->workspace) }}
{{ __('Due Date') }}:
{{ company_date_formate($project->end_date, $project->created_by, $project->workspace) }}
{{ __('Total Members') }}:
{{ (int) $project->users->count() + (int) $project->clients->count() }}
@endif
@if ($project->status == 'Finished')
{{ __('Finished') }}
@elseif($project->status == 'Ongoing')
{{ __('Ongoing') }}
@else
{{ __('OnHold') }}
@endif
@if($project->type == 'project')
{{ __('Days left') }}
{{ $daysleft }}
@endif @php $class = ($project->type == 'template') ? 'col-lg-6 col-sm-6' : 'col-lg-4 col-sm-6'; @endphp
{{ __('Total Task') }}
{{ $project->countTask() }}
{{ __('Comment') }}
{{ $project->countTaskComments() }}
@endif @if (isset($setting->progress) && $setting->progress == 'on')
{{ __('Progress') }} {{ __('(Last Week Tasks)') }}
@endif
@if (isset($setting->member) && $setting->member == 'on')
{{ __('Team Members') }} ({{ count($project->users) }})
@foreach ($project->users as $user) @endforeach
@endif @if (isset($setting->client) && $setting->client == 'on')
{{ __('Clients') }} ({{ count($project->clients) }})
@endif @if(module_is_active('Account')) @if (isset($setting->vendor) && $setting->vendor == 'on')
{{ __('Vendors') }} ({{ count($project->venders) }})
@endif @endif
@if (isset($setting->milestone) && $setting->milestone == 'on')
{{ __('Milestones') }} ({{ count($project->milestones) }})
@can('milestone create')

@endcan
@foreach ($project->milestones as $key => $milestone) @endforeach
{{ __('Name') }} {{ __('Status') }} {{ __('Start Date') }} {{ __('End Date') }} {{ __('Cost') }} {{ __('Progress') }}
{{ $milestone->title }}
@if ($milestone->status == 'complete') @else @endif {{ $milestone->start_date }} {{ $milestone->end_date }} {{ company_setting('defult_currancy', $project->created_by, $project->workspace) }}{{ $milestone->cost }}
{{ $milestone->progress }}%
@endif @if (isset($setting->attachment) && $setting->attachment == 'on')
{{ __('Files') }}
@php $files = $project->files; @endphp @foreach ($files as $file) @endforeach
@endif @if (isset($setting->task) && $setting->task == 'on')
{{ __('Task') }}
@if ($project)
@foreach ($stages as $stage)

{{ $stage->name }}

@foreach ($stage->tasks as $task)
@if ($task->priority == 'Low')
{{ $task->priority }}
@elseif($task->priority == 'Medium')
{{ $task->priority }}
@elseif($task->priority == 'High')
{{ $task->priority }}
@endif
{{ company_date_formate($task->start_date, $project->created_by, $project->workspace) }}
{{ company_date_formate($task->due_date, $project->created_by, $project->workspace) }}
  • {{ $task->taskCompleteSubTaskCount() }}/{{ $task->taskTotalSubTaskCount() }}
@if ($users = $task->users()) @foreach ($users as $key => $user) @if ($key < 3) imageavatar) src="{{ get_file($user->avatar) }}" @else src="{{ get_file('avatar.png') }}" @endif class="rounded-circle " width="40px" height="40px"> @endif @endforeach @if (count($users) > 3) image @endif @endif
@endforeach
@endforeach
@else

404

{{ __('Page Not Found') }}
@endif
@endif @if (isset($setting->bug_report) && $setting->bug_report == 'on')
{{ __('Bug Report') }}
@if ($project)
@foreach ($bug_stages as $stage)

{{ $stage->name }}

@foreach ($stage->bugs as $bug)
@if ($bug->priority == 'Low')
{{ $bug->priority }}
@elseif($bug->priority == 'Medium')
{{ $bug->priority }}
@elseif($bug->priority == 'High')
{{ $bug->priority }}
@endif
@endforeach
@endforeach
@else

404

{{ __('Page Not Found') }}
@endif
@endif @if (isset($setting->invoice) && $setting->invoice == 'on')
{{ __('Invoice') }}
@if (!empty($project) && !empty($invoices))
@forelse($invoices as $invoice) @empty @include('layouts.nodatafound') @endforelse
{{ __('Invoice') }} {{ __('Issue Date') }} {{ __('Due Date') }} {{ __('Due Amount') }} {{ __('Status') }}
{{ App\Models\Invoice::invoiceNumberFormat($invoice->invoice_id,$project->created_by, $project->workspace) }} {{ company_date_formate($invoice->issue_date,$project->created_by, $project->workspace) }} @if ($invoice->due_date < date('Y-m-d'))

{{ company_date_formate($invoice->due_date,$project->created_by, $project->workspace) }}

@else {{ company_date_formate($invoice->due_date,$project->created_by, $project->workspace) }} @endif
{{ currency_format_with_sym($invoice->getDue(),$project->created_by, $project->workspace) }} @if ($invoice->status == 0) {{ __(App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 1) {{ __(App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 2) {{ __(App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 3) {{ __(App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 4) {{ __(App\Models\Invoice::$statues[$invoice->status]) }} @endif
@else

404

{{ __('Page Not Found') }}
@endif
@endif @if(module_is_active('Account')) @if (isset($setting->bill) && $setting->bill == 'on')
{{ __('Bill') }}
@forelse ($bills as $bill) @empty @include('layouts.nodatafound') @endforelse
{{ __('Bill') }} {{ __('Vendor') }} {{ __('Bill Date') }} {{ __('Due Date') }} {{ __('Due Amount') }} {{ __('Status') }}
@can('bill show') {{ Modules\Account\Entities\Bill::billNumberFormat($bill->bill_id) }} @else {{ Modules\Account\Entities\Bill::billNumberFormat($bill->bill_id) }} @endif {{ !empty($bill->vendor) ? $bill->vendor->name : '' }} {{ company_date_formate($bill->bill_date) }} @if ($bill->due_date < date('Y-m-d'))

{{ company_date_formate($bill->due_date) }}

@else {{ company_date_formate($bill->due_date) }} @endif
{{ currency_format_with_sym($bill->getDue()) }} @if ($bill->status == 0) {{ __(Modules\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 1) {{ __(Modules\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 2) {{ __(Modules\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 3) {{ __(Modules\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 4) {{ __(Modules\Account\Entities\Bill::$statues[$bill->status]) }} @endif
@endif @endif @if(module_is_active('Timesheet',$project->created_by)) @if (isset($setting->timesheet) && $setting->timesheet == 'on')
{{ __('Timesheet') }}
@include('timesheet::project.index',['project' => $project])
@endif @endif @if (isset($setting->activity) && $setting->activity == 'on')
{{ __('Activity') }}
@foreach($project->activities as $activity)
@if($activity->log_type == 'Upload File') @elseif($activity->log_type == 'Create Milestone') @elseif($activity->log_type == 'Create Task') @elseif($activity->log_type == 'Create Bug') @elseif($activity->log_type == 'Move' || $activity->log_type == 'Move Bug') @elseif($activity->log_type == 'Create Invoice') @elseif($activity->log_type == 'Invite User') @elseif($activity->log_type == 'Share with Client') @elseif($activity->log_type == 'Create Timesheet') @endif
{{ $activity->log_type }}
{!! $activity->getRemark() !!}

{{ $activity->created_at->diffForHumans() }}

@endforeach
@endif
@endsection @push('scripts') @endpush