@extends('layouts.app') @section('title', trans('invoice.list')) @section('content')
| {{ trans('app.table_no') }} | {{ trans('invoice.number') }} | {{ trans('app.date') }} | {{ trans('project.project') }} | {{ trans('invoice.customer') }} | {{ trans('invoice.amount') }} | {{ trans('app.action') }} | @forelse($invoices as $key => $invoice)
|---|---|---|---|---|---|---|
| {{ 1 + $key }} | {{ $invoice->numberLink() }} | {{ $invoice->created_at->format('Y-m-d') }} | {{ $invoice->project->nameLink() }} | {{ $invoice->project->customer->nameLink() }} | {{ formatRp($invoice->amount) }} | {!! html_link_to_route( 'invoices.show', '', [$invoice->number], [ 'icon' => 'search', 'class' => 'btn btn-info btn-xs', 'title' => 'Lihat ' . trans('invoice.show') ] ) !!} {!! html_link_to_route( 'invoices.pdf', '', [$invoice->number], [ 'icon' => 'print', 'class' => 'btn btn-default btn-xs', 'title' => trans('invoice.print'), 'target' => '_blank' ] ) !!} |
| {{ trans('invoice.empty') }} | ||||||
| {{ trans('app.total') }} | {{ formatRp($invoices->sum('amount')) }} | |||||