@extends('header') @section('head') @parent @stop @section('content')
{!! Former::open('projects/bulk')->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 @if ( ! $project->trashed()) @can('create', ENTITY_TASK) {!! Button::primary(trans("texts.new_task")) ->asLinkTo(URL::to("/tasks/create/{$project->client->public_id}/{$project->public_id}")) ->appendIcon(Icon::create('plus-sign')) !!} @endcan @endif @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') }}

@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 (floatval($project->task_rate)) {{ trans('texts.task_rate') . ': ' . Utils::formatMoney($project->task_rate) }}
@endif

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

{{ $project->private_notes }}

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


@include('list', [ 'entityType' => ENTITY_TASK, 'datatable' => new \App\Ninja\Datatables\ProjectTaskDatatable(true, true), 'projectId' => $project->public_id, 'clientId' => $project->client->public_id, ])
@stop