From d063d427fa9a6037b33ebbae5e61089f3a217bc0 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Sun, 1 Dec 2019 20:18:34 +0800 Subject: [PATCH] Improve invoice list page --- resources/views/invoices/index.blade.php | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/resources/views/invoices/index.blade.php b/resources/views/invoices/index.blade.php index 7a48368..cafcf2c 100755 --- a/resources/views/invoices/index.blade.php +++ b/resources/views/invoices/index.blade.php @@ -1,30 +1,30 @@ @extends('layouts.app') -@section('title', trans('invoice.list')) +@section('title', __('invoice.list')) @section('content')

- {!! FormField::formButton(['route' => 'invoice-drafts.create'], trans('invoice.create'), [ + {!! FormField::formButton(['route' => 'invoice-drafts.create'], __('invoice.create'), [ 'class' => 'btn btn-success', 'name' => 'create-invoice-draft', 'id' => 'invoice-draft-create-button' ]) !!}
- {{ trans('invoice.list') }} + {{ __('invoice.list') }}

- - - - - - - + + + + + + + @forelse($invoices as $key => $invoice) @@ -49,22 +49,16 @@ [ 'icon' => 'print', 'class' => 'btn btn-default btn-xs', - 'title' => trans('invoice.print'), 'target' => '_blank' + 'title' => __('invoice.print'), 'target' => '_blank' ] ) !!} @empty - + @endforelse - - - - - - -
{{ trans('app.table_no') }}{{ trans('invoice.number') }}{{ trans('app.date') }}{{ trans('project.project') }}{{ trans('invoice.customer') }}{{ trans('invoice.amount') }}{{ trans('app.action') }}{{ __('app.table_no') }}{{ __('invoice.number') }}{{ __('app.date') }}{{ __('project.project') }}{{ __('invoice.customer') }}{{ __('invoice.amount') }}{{ __('app.action') }}
{{ trans('invoice.empty') }}
{{ __('invoice.empty') }}
{{ trans('app.total') }}{{ format_money($invoices->sum('amount')) }} 
+{{ $invoices->appends(Request::except('page'))->render() }} @endsection