More styling, banner when nothing is added

This commit is contained in:
Nabeel Shahzad
2018-04-09 20:04:21 -05:00
parent e1c8174b3f
commit e109e00aa8
9 changed files with 145 additions and 94 deletions

View File

@@ -2,18 +2,21 @@
<div class="header">
<h3>expenses</h3>
@component('admin.components.info')
These expenses are only applied to this aircraft.
These expenses are only applied to this aircraft.
@endcomponent
</div>
<br/>
<table class="table table-responsive" id="expenses">
@if(count($aircraft->expenses))
<thead>
<th>Name</th>
<th>Cost&nbsp;<span class="small">{{ currency(config('phpvms.currency')) }}</span></th>
<th>Type</th>
<th></th>
@if(count($aircraft->expenses) === 0)
@include('admin.common.none_added', ['type' => 'expenses'])
@endif
<table class="table table-responsive" id="expenses">
@if(count($aircraft->expenses) > 0)
<thead>
<th>Name</th>
<th>Cost&nbsp;<span class="small">{{ currency(config('phpvms.currency')) }}</span></th>
<th>Type</th>
<th></th>
</thead>
@endif