@php $setting = []; if ($project->copylinksetting) { $setting = json_decode($project->copylinksetting); } $title = module_is_active('ProjectTemplate') && $project->type == 'template' ? __('Project Template') : __('Project'); @endphp @extends('layouts.invoicepayheader') @section('page-title') {{ $title . ' ' . $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 (module_is_active('Documents', $setting->documents ?? 'on')) @if (isset($setting->documents) && $setting->documents == 'on') {{ __('Documents') }}
@endif @endif @if (module_is_active('Retainer')) @if (isset($setting->retainer) && $setting->retainer == 'on') {{ __('Retainer') }}
@endif @endif @if (isset($setting->proposal) && $setting->proposal == 'on') {{ __('Proposal') }}
@endif @if (module_is_active('Procurement')) @if (isset($setting->procurement) && $setting->procurement == 'on') {{ __('Procurement') }}
@endif @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) }})
@permission('milestone create')

@endpermission
@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') }}
@permission('bill show') {{ Workdo\Account\Entities\Bill::billNumberFormat($bill->bill_id, $bill->created_by, $bill->workspace) }} @else {{ Workdo\Account\Entities\Bill::billNumberFormat($bill->bill_id, $bill->created_by, $bill->workspace) }} @endif {{ !empty($bill->vendor) ? $bill->vendor->name : '' }} {{ company_date_formate($bill->bill_date, $bill->created_by, $bill->workspace) }} @if ($bill->due_date < date('Y-m-d'))

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

@else {{ company_date_formate($bill->due_date, $bill->created_by, $bill->workspace) }} @endif
{{ currency_format_with_sym($bill->getDue(), $bill->created_by, $bill->workspace) }} @if ($bill->status == 0) {{ __(Workdo\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 1) {{ __(Workdo\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 2) {{ __(Workdo\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 3) {{ __(Workdo\Account\Entities\Bill::$statues[$bill->status]) }} @elseif($bill->status == 4) {{ __(Workdo\Account\Entities\Bill::$statues[$bill->status]) }} @endif
@endif @endif @if (module_is_active('Retainer')) @if (isset($setting->retainer) && $setting->retainer == 'on')
{{ __('Retainer') }}
@if (!empty($retainers))
@foreach ($retainers as $retainer) @endforeach
{{ __('Retainer') }} {{ __('Customer') }} {{ __('Account Type') }} {{ __('Issue Date') }} {{ __('Due Amount') }} {{ __('Status') }}
{{ Workdo\Retainer\Entities\Retainer::retainerNumberFormat($retainer->retainer_id, $retainer->created_by, $retainer->workspace) }} {{ !empty($retainer->customer) ? $retainer->customer->name : '' }} {{ $retainer->account_type }} {{ company_date_formate($retainer->issue_date, $retainer->created_by, $retainer->workspace) }} {{ currency_format_with_sym($retainer->getDue(), $retainer->created_by, $retainer->workspace) }} @if ($retainer->status == 0) {{ __(Workdo\Retainer\Entities\Retainer::$statues[$retainer->status]) }} @elseif($retainer->status == 1) {{ __(Workdo\Retainer\Entities\Retainer::$statues[$retainer->status]) }} @elseif($retainer->status == 2) {{ __(Workdo\Retainer\Entities\Retainer::$statues[$retainer->status]) }} @elseif($retainer->status == 3) {{ __(Workdo\Retainer\Entities\Retainer::$statues[$retainer->status]) }} @elseif($retainer->status == 4) {{ __(Workdo\Retainer\Entities\Retainer::$statues[$retainer->status]) }} @elseif($retainer->status == 5) {{ __(Workdo\Retainer\Entities\Retainer::$statues[$retainer->status]) }} @endif
@else

404

{{ __('Page Not Found') }}
@endif
@endif @endif @if (isset($setting->proposal) && $setting->proposal == 'on')
{{ __('proposals') }}
@if (!empty($proposals))
@foreach ($proposals as $proposal) @endforeach
{{ __('Proposal') }} {{ __('Customer') }} {{ __('Account Type') }} {{ __('Issue Date') }} {{ __('Status') }}
{{ \App\Models\Proposal::proposalNumberFormat($proposal->proposal_id, $proposal->created_by, $proposal->workspace) }} {{ !empty($proposal->customer) ? $proposal->customer->name : '' }} {{ $proposal->account_type }} {{ company_date_formate($proposal->issue_date, $proposal->created_by, $proposal->workspace) }} @if ($proposal->status == 0) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 1) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 2) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 3) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 4) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @endif
@else

404

{{ __('Page Not Found') }}
@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 @if (isset($setting->documents) && $setting->documents == 'on') @stack('DocumentShareSection') @endif @if (isset($setting->procurement) && $setting->procurement == 'on')
@stack('ProcurementShareSection')
@endif
@endsection @push('scripts') @endpush