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.
53 lines
2.3 KiB
53 lines
2.3 KiB
@extends('layouts.app')
|
|
|
|
@section('title', $invoice->number . ' - ' . trans('invoice.detail'))
|
|
|
|
@section('content')
|
|
<h1 class="page-header">
|
|
<div class="pull-right">
|
|
{{ link_to_route('invoices.edit', trans('invoice.edit'), [$invoice], ['class' => 'btn btn-warning']) }}
|
|
{{ link_to_route('invoices.pdf', trans('invoice.print'), [$invoice], ['class' => 'btn btn-default']) }}
|
|
{{ link_to_route('projects.invoices', trans('invoice.back_to_project'), [$invoice->project_id], ['class' => 'btn btn-default']) }}
|
|
</div>
|
|
{{ $invoice->number }} <small>{{ trans('invoice.detail') }}</small>
|
|
</h1>
|
|
<div class="row">
|
|
<div class="col-sm-4">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading"><h3 class="panel-title">{{ trans('invoice.detail') }}</h3></div>
|
|
@include('invoices.partials.detail')
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-8">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading"><h3 class="panel-title">{{ trans('invoice.items') }}</h3></div>
|
|
<div class="panel-body">
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%">{{ trans('app.table_no') }}</th>
|
|
<th width="70%">{{ trans('invoice.item_description') }}</th>
|
|
<th width="25%" class="text-right">{{ trans('invoice.item_amount') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($invoice->items as $key => $item)
|
|
<tr>
|
|
<td>{{ $key + 1 }}</td>
|
|
<td>{{ $item['description'] }}</td>
|
|
<td class="text-right">{{ formatRp($item['amount']) }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th colspan="2" class="text-right">{{ trans('app.total') }} :</th>
|
|
<th class="text-right">{{ formatRp($invoice->amount) }}</th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|