You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

69 lines
2.6 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{ __('project.jobs') }} {{ $project->name }}</title>
{!! Html::style('assets/css/app.css') !!}
</head>
<body style="font-family:'Liberation Serif'">
<div class="container">
<h1 class="page-header text-center">{{ __('project.jobs') }} {{ $project->name }}</h1>
@foreach($jobs as $key => $job)
<h2 class="job-title">{{ $job->name }}</h2>
<table width="100%" class="table table-condensed table-bordered">
<tbody>
<tr style="background-color: #ffd298"><th colspan="2">{{ __('app.description') }}</th></tr>
<tr><td colspan="2">{!! nl2br($job->description) !!}</td></tr>
<tr>
<td colspan="2" class="text-right">
<em>
{{ __('job.price') }}: {{ format_money($job->price) }}
</em>
</td>
</tr>
@if ($job->tasks->count())
<tr style="background-color: #ffd298">
<th class="col-md-3">{{ __('task.list') }}</th>
<th class="col-md-6">{{ __('app.description') }}</th>
</tr>
@foreach($job->tasks as $task)
<tr>
<td>{{ $task->name }}</td>
<td>{!! nl2br($task->description) !!}</td>
</tr>
@endforeach
@endif
</tbody>
</table>
@endforeach
<h1 class="page-header text-center">{{ __('project.cost_proposal') }}</h1>
<table width="100%" class="table table-condensed table-bordered">
<tbody>
<tr>
<th class="text-center">{{ __('app.table_no') }}</th>
<th>{{ __('job.name') }}</th>
<th class="text-center">{{ __('job.price') }}</th>
</tr>
@foreach($jobs as $key => $job)
<tr>
<td class="text-center">{{ 1 + $key }}</td>
<td>{{ $job->name }}</td>
<td class="text-right">{{ format_money($job->price) }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th class="text-right" colspan="2">Total</th>
<th class="text-right">{{ format_money($jobs->sum('price')) }}</th>
</tr>
</tfoot>
</table>
</div>
</body>
</html>