Browse Source
Add bank account list on invoice print page
Add bank account list on invoice print page
Add bank account list link on dashboard Restructure bank account index pagepull/6/head
7 changed files with 74 additions and 67 deletions
-
5app/Http/Controllers/Invoices/InvoicesController.php
-
13app/Http/Controllers/References/BankAccountsController.php
-
70resources/views/bank-accounts/index.blade.php
-
17resources/views/invoices/pdf.blade.php
-
3resources/views/pages/partials/dashboard-nav-tabs.blade.php
-
2tests/Feature/AgencyProfileTest.php
-
5tests/Feature/References/ManageBankAccountsTest.php
@ -1,65 +1,47 @@ |
|||||
@extends('layouts.app') |
|
||||
|
@extends('layouts.dashboard') |
||||
|
|
||||
@section('title', trans('bank_account.list')) |
@section('title', trans('bank_account.list')) |
||||
|
|
||||
@section('content') |
|
||||
<h1 class="page-header"> |
|
||||
<div class="pull-right"> |
|
||||
{{ link_to_route('bank-accounts.index', trans('bank_account.create'), ['action' => 'create'], ['class' => 'btn btn-success']) }} |
|
||||
</div> |
|
||||
{{ trans('bank_account.list') }} |
|
||||
<small>{{ trans('app.total') }} : {{ count($bankAccounts) }} {{ trans('bank_account.bank_account') }}</small> |
|
||||
</h1> |
|
||||
|
@section('content-dashboard') |
||||
|
|
||||
<div class="row"> |
<div class="row"> |
||||
<div class="col-md-8"> |
<div class="col-md-8"> |
||||
<div class="panel panel-default table-responsive"> |
|
||||
<table class="table table-condensed"> |
|
||||
<thead> |
|
||||
<tr> |
|
||||
<th class="text-center">{{ trans('app.table_no') }}</th> |
|
||||
<th>{{ trans('bank_account.name') }}</th> |
|
||||
<th>{{ trans('bank_account.number') }}</th> |
|
||||
<th>{{ trans('bank_account.account_name') }}</th> |
|
||||
<th>{{ trans('bank_account.description') }}</th> |
|
||||
<th class="text-center">{{ trans('app.action') }}</th> |
|
||||
</tr> |
|
||||
</thead> |
|
||||
<tbody> |
|
||||
@forelse($bankAccounts as $key => $bankAccount) |
|
||||
@php |
|
||||
$bankAccount = (object) $bankAccount; |
|
||||
@endphp |
|
||||
<tr> |
|
||||
<td class="text-center">{{ $key }}</td> |
|
||||
<td>{{ $bankAccount->name }}</td> |
|
||||
<td>{{ $bankAccount->number }}</td> |
|
||||
<td>{{ $bankAccount->account_name }}</td> |
|
||||
<td>{{ $bankAccount->description }}</td> |
|
||||
<td class="text-center"> |
|
||||
|
@foreach ($bankAccounts as $key => $bankAccount) |
||||
|
<div class="col-md-6"> |
||||
|
<div class="panel panel-default"> |
||||
|
<div class="panel-heading text-center"><h3 class="panel-title">{{ $bankAccount->name }}</h3></div> |
||||
|
<div class="panel-body"> |
||||
|
<p>{{ trans('bank_account.number') }}:<br><strong class="lead">{{ $bankAccount->number }}</strong></p> |
||||
|
<p>{{ trans('bank_account.account_name') }}:<br><strong class="lead">{{ $bankAccount->account_name }}</strong></p> |
||||
|
@if ($bankAccount->description) |
||||
|
<p>{{ trans('app.description') }}:<br>{{ $bankAccount->description }}</p> |
||||
|
@endif |
||||
|
</div> |
||||
|
<div class="panel-footer"> |
||||
{!! link_to_route( |
{!! link_to_route( |
||||
'bank-accounts.index', |
'bank-accounts.index', |
||||
trans('app.edit'), |
trans('app.edit'), |
||||
['action' => 'edit', 'id' => $key], |
['action' => 'edit', 'id' => $key], |
||||
['id' => 'edit-bank_account-' . $key] |
['id' => 'edit-bank_account-' . $key] |
||||
) !!} | |
|
||||
|
) !!} |
||||
{!! link_to_route( |
{!! link_to_route( |
||||
'bank-accounts.index', |
'bank-accounts.index', |
||||
trans('app.delete'), |
trans('app.delete'), |
||||
['action' => 'delete', 'id' => $key], |
['action' => 'delete', 'id' => $key], |
||||
['id' => 'del-bank_account-' . $key] |
|
||||
|
['id' => 'del-bank_account-' . $key, 'class' => 'pull-right'] |
||||
) !!} |
) !!} |
||||
</td> |
|
||||
</tr> |
|
||||
@empty |
|
||||
<tr> |
|
||||
<td colspan="6">{{ trans('bank_account.empty') }}</td> |
|
||||
</tr> |
|
||||
@endforelse |
|
||||
</tbody> |
|
||||
</table> |
|
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
|
</div> |
||||
|
@endforeach |
||||
|
</div> |
||||
<div class="col-md-4"> |
<div class="col-md-4"> |
||||
|
@if (Request::has('action') == false) |
||||
|
{!! html_link_to_route('bank-accounts.index', trans('bank_account.create'), ['action' => 'create'], [ |
||||
|
'class'=>'btn btn-success', |
||||
|
'icon' => 'plus' |
||||
|
]) !!} |
||||
|
@endif |
||||
@includeWhen(Request::has('action'), 'bank-accounts.forms') |
@includeWhen(Request::has('action'), 'bank-accounts.forms') |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
|
|||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue