@extends('layouts.customer') @section('title', trans('customer.invoices')) @section('content-customer')
@forelse($invoices as $key => $invoice) @empty @endforelse
{{ trans('app.table_no') }} {{ trans('invoice.number') }} {{ trans('app.date') }} {{ trans('project.project') }} {{ trans('invoice.customer') }} {{ trans('invoice.amount') }} {{ trans('app.action') }}
{{ 1 + $key }} {{ $invoice->numberLink() }} {{ $invoice->created_at->format('Y-m-d') }} {{ $invoice->project->nameLink() }} {{ $invoice->project->customer->nameLink() }} {{ format_money($invoice->amount) }} {!! html_link_to_route( 'invoices.show', '', [$invoice->number], [ 'icon' => 'search', 'class' => 'btn btn-info btn-xs', 'title' => __('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') }} {{ format_money($invoices->sum('amount')) }}
@endsection