@extends('layouts.app') @section('content')
{{ $project->name }} @php $date_format = get_company_option('date_format','Y-m-d'); @endphp @php $time_format = get_company_option('time_format',24) == '24' ? 'H:i' : 'h:i A'; @endphp @php $currency = currency() @endphp
@if($project->billing_type == 'fixed') @endif @if($project->billing_type == 'hourly') @endif
{{ _lang('Name') }}{{ $project->name }}
{{ _lang('Client') }}{{ $project->client->contact_name }}
{{ _lang('Progress') }}
{{ $project->progress }}%
{{ _lang('Billing Type') }}{{ ucwords($project->billing_type) }}
{{ _lang('Status') }}{!! clean(project_status($project->status)) !!}
{{ _lang('Fixed Rate') }}{{ decimalPlace($project->fixed_rate, $currency) }}
{{ _lang('Hourly Rate') }}{{ decimalPlace($project->hourly_rate, $currency) }}
{{ _lang('Start Date') }}{{ date("$date_format", strtotime($project->start_date)) }}
{{ _lang('End Date') }}{{ date("$date_format", strtotime($project->end_date)) }}

{{ _lang('Project Description') }}


{!! clean($project->description) !!}
{{ _lang('Total Hour Worked') }}

{{ time_from_seconds($hour_completed->total_seconds) }} {{ _lang('Hour') }}

@if($project->billing_type == 'hourly')
{{ _lang('Total Hour Cost') }}

{{ decimalPlace(($hour_completed->total_seconds/3600) * $project->hourly_rate, $currency) }}

@else
{{ _lang('Fixed Cost') }}

{{ decimalPlace($project->fixed_rate, $currency) }}

@endif
{{ _lang('Project Members') }}

@foreach($project->members as $project_member) @endforeach
{{ _lang('#') }} {{ _lang('Name') }}
{{ $project_member->name }}
@foreach($tasks as $task) @endforeach
{{ _lang('Title') }} {{ _lang('Priority') }} {{ _lang('Task Status') }} {{ _lang('Assigned User') }} {{ _lang('Start Date') }} {{ _lang('End Date') }}
{{ $task->title }} {!! clean(task_priority($task->priority)) !!} {{ $task->status->title }} {{ $task->assigned_user->name }} {{ $task->start_date }} {{ $task->end_date }}
@foreach($timesheets as $timesheet) @endforeach
{{ _lang('User') }} {{ _lang('Task') }} {{ _lang('Start Time') }} {{ _lang('End Time') }} {{ _lang('Total Hour') }} {{ _lang('View') }}
{{ $timesheet->user->name }} {{ $timesheet->task->title }} {{ date("$date_format $time_format",strtotime($timesheet->start_time)) }} {{ date("$date_format $time_format",strtotime($timesheet->end_time)) }} {{ $timesheet->total_hour }} {{ _lang('View') }}
@foreach($project_milestones as $projectmilestone) @endforeach
{{ _lang('Title') }} {{ _lang('Due Date') }} {{ _lang('Status') }} {{ _lang('Cost') }}
{{ $projectmilestone->title }} {{ date("$date_format",strtotime($projectmilestone->due_date)) }} {!! clean(project_status($projectmilestone->status)) !!} {{ decimalPlace($projectmilestone->cost,$currency) }}
@foreach($invoices as $invoice) @endforeach
{{ _lang('Invoice Number') }} {{ _lang('Due Date') }} {{ _lang('Grand Total') }} {{ _lang('Paid') }} {{ _lang('Status') }} {{ _lang('Action') }}
{{ $invoice->invoice_number }} {{ date($date_format,strtotime($invoice->due_date)) }} {{ decimalPlace($invoice->grand_total, $currency) }} {!! strip_tags(invoice_status($invoice->status),'') !!} {{ _lang('View') }}
@foreach($expenses as $expense) @endforeach
{{ _lang('Date') }} {{ _lang('Account') }} {{ _lang('Expense Type') }} {{ _lang('Amount') }} {{ _lang('Method') }}
{{ date("$date_format",strtotime($expense->trans_date)) }} {{ $expense->expense_type->name }} {{ decimalPlace($expense->amount, $currency) }} {{ $expense->payment_method->name }}
{{ csrf_field() }}
@foreach($projectfiles as $projectfile) @endforeach
{{ _lang('Upload Date') }} {{ _lang('Uploaded') }} {{ _lang('File') }} {{ _lang('Remove') }}
{{ date("$date_format $time_format", strtotime($projectfile->created_at)) }} {{ $projectfile->user->name }} {{ $projectfile->file }} {{ _lang('Remove') }}
{{ csrf_field() }}
@foreach($notes as $note) @endforeach
{{ $note->user->name }} ({{ date("$date_format $time_format", strtotime($note->created_at)) }})
{{ $note->note }}
@endsection @section('js-script') @endsection