not showing edit button
This commit is contained in:
parent
dfc6357154
commit
21100280ce
@ -48,6 +48,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($bills as $item)
|
@foreach($bills as $item)
|
||||||
|
@php $paid = $item->paid; @endphp
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ url('expenses/bills/' . $item->id . ' ') }}">{{ $item->bill_number }}</a></td>
|
<td><a href="{{ url('expenses/bills/' . $item->id . ' ') }}">{{ $item->bill_number }}</a></td>
|
||||||
<td>{{ $item->vendor_name }}</td>
|
<td>{{ $item->vendor_name }}</td>
|
||||||
@ -62,7 +63,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu dropdown-menu-right">
|
<ul class="dropdown-menu dropdown-menu-right">
|
||||||
<li><a href="{{ url('expenses/bills/' . $item->id) }}">{{ trans('general.show') }}</a></li>
|
<li><a href="{{ url('expenses/bills/' . $item->id) }}">{{ trans('general.show') }}</a></li>
|
||||||
@if ($item->paid && !$item->reconciled)
|
@if (!$item->reconciled)
|
||||||
<li><a href="{{ url('expenses/bills/' . $item->id . '/edit') }}">{{ trans('general.edit') }}</a></li>
|
<li><a href="{{ url('expenses/bills/' . $item->id . '/edit') }}">{{ trans('general.edit') }}</a></li>
|
||||||
@endif
|
@endif
|
||||||
@permission('create-expenses-bills')
|
@permission('create-expenses-bills')
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($invoices as $item)
|
@foreach($invoices as $item)
|
||||||
|
@php $paid = $item->paid; @endphp
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ url('incomes/invoices/' . $item->id . ' ') }}">{{ $item->invoice_number }}</a></td>
|
<td><a href="{{ url('incomes/invoices/' . $item->id . ' ') }}">{{ $item->invoice_number }}</a></td>
|
||||||
<td>{{ $item->customer_name }}</td>
|
<td>{{ $item->customer_name }}</td>
|
||||||
@ -61,7 +62,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu dropdown-menu-right">
|
<ul class="dropdown-menu dropdown-menu-right">
|
||||||
<li><a href="{{ url('incomes/invoices/' . $item->id) }}">{{ trans('general.show') }}</a></li>
|
<li><a href="{{ url('incomes/invoices/' . $item->id) }}">{{ trans('general.show') }}</a></li>
|
||||||
@if ($item->paid && !$item->reconciled)
|
@if (!$item->reconciled)
|
||||||
<li><a href="{{ url('incomes/invoices/' . $item->id . '/edit') }}">{{ trans('general.edit') }}</a></li>
|
<li><a href="{{ url('incomes/invoices/' . $item->id . '/edit') }}">{{ trans('general.edit') }}</a></li>
|
||||||
@endif
|
@endif
|
||||||
@permission('create-incomes-invoices')
|
@permission('create-incomes-invoices')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user