@extends('layouts.master') @section('title', 'Job details') @section('content')
{{ $job->id }}
{{ $job->created_at->format('j/m/y, h:iA') }}
{{ $job->company->name }}
{{ $job->title }}
{{ $job->client->name.' ('.$job->client->pic.')' }}
{{ $job->personInCharge->name }}
@if($job->users->count()) @foreach($job->users as $piv) {{--*/ $pivs[] = $piv->name /*--}} @endforeach {{ implode(', ',$pivs) }} @else - @endif
{{ $job->brief?$job->brief:'-' }}
@if($job->status==1) Completed @elseif($job->status==-1) Canceled @elseif($job->status==2) KIV @else Not complete @endif
@if($task->updated_by == null) Created by {{ $task->creator->name }} {{ $task->created_at->diffForHumans() }} @else Last updated by {{ $task->updator->name }} {{ $task->updated_at->diffForHumans() }} @endif
@if($task->deadline != null && $task->status != 1)Deadline: {{ $task->deadline->diffForHumans() }}
@endif{{ $invoice->invoice_no }}
Created by {{ $invoice->creator->name }} {{ $invoice->created_at->diffForHumans() }}