@extends('header') @section('head') @parent @stop @section('content')
{!! Former::open('projects/bulk')->autocomplete('off')->addClass('mainForm') !!}
{!! Former::text('action') !!} {!! Former::text('public_id')->value($project->public_id) !!}
@if ( ! $project->is_deleted) @can('edit', $project) {!! DropdownButton::normal(trans('texts.edit_project')) ->withAttributes(['class'=>'normalDropDown']) ->withContents([ ($project->trashed() ? false : ['label' => trans('texts.archive_project'), 'url' => "javascript:onArchiveClick()"]), ['label' => trans('texts.delete_project'), 'url' => "javascript:onDeleteClick()"], ] )->split() !!} @endcan @endif @if ($project->trashed()) @can('edit', $project) {!! Button::primary(trans('texts.restore_project')) ->appendIcon(Icon::create('cloud-download')) ->withAttributes(['onclick' => 'onRestoreClick()']) !!} @endcan @endif {!! Former::close() !!}

{{ trans('texts.details') }}

{!! $project->client->present()->link !!}

@if ($project->due_date) {{ trans('texts.due_date') . ': ' . Utils::fromSqlDate($project->due_date) }}
@endif @if ($project->budgeted_hours) {{ trans('texts.budgeted_hours') . ': ' . $project->budgeted_hours }}
@endif @if ($project->present()->defaultTaskRate) {{ trans('texts.task_rate') . ': ' . $project->present()->defaultTaskRate }}
@endif @if ($account->customLabel('project1') && $project->custom_value1) {{ $account->present()->customLabel('project1') . ': ' }} {!! nl2br(e($project->custom_value1)) !!}
@endif @if ($account->customLabel('project2') && $project->custom_value2) {{ $account->present()->customLabel('project2') . ': ' }} {!! nl2br(e($project->custom_value2)) !!}
@endif

{{ trans('texts.notes') }}

{{ $project->private_notes }}

{{ trans('texts.summary') }}
{{ trans('texts.tasks') }} {{ $chartData->count }}
{{ trans('texts.duration') }} {{ Utils::formatTime($chartData->duration) }} @if (floatval($project->budgeted_hours)) [{{ round($chartData->duration / ($project->budgeted_hours * 60 * 60) * 100) }}%] @endif

@if ($chartData->duration)
@endif
@include('list', [ 'entityType' => ENTITY_TASK, 'datatable' => new \App\Ninja\Datatables\ProjectTaskDatatable(true, true), 'projectId' => $project->public_id, 'clientId' => $project->client->public_id, 'url' => url('api/tasks/' . $project->client->public_id . '/' . $project->public_id), ])
@stop