Skip to content

Commit

Permalink
Removed delete button aber expired
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric H committed Jul 10, 2019
1 parent 2ff2344 commit 0d74e13
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
16 changes: 9 additions & 7 deletions resources/views/pages/manage/menus/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,15 @@
</div>

{{-- Delete --}}
<div class="col p-0 text-center">
{!! Form::open(['route' => ['menu.destroy', $menu], 'method' => 'DELETE']) !!}
<button type="submit" class="btn btn-sm btn-link bg-transparent text-danger" title="{{ trans('page.manage.tableButtons.delete') }}">
{!! config('icons.delete') !!}
</button>
{!! Form::close() !!}
</div>
@if (! $menu->order->closed)
<div class="col p-0 text-center">
{!! Form::open(['route' => ['menu.destroy', $menu], 'method' => 'DELETE']) !!}
<button type="submit" class="btn btn-sm btn-link bg-transparent text-danger" title="{{ trans('page.manage.tableButtons.delete') }}">
{!! config('icons.delete') !!}
</button>
{!! Form::close() !!}
</div>
@endif

</div>
</td>
Expand Down
16 changes: 9 additions & 7 deletions resources/views/pages/manage/orders/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,15 @@
</div>

{{-- Delete --}}
<div class="col p-0 text-center">
{!! Form::open(['route' => ['orders.destroy', $order], 'method' => 'DELETE']) !!}
<button type="submit" class="btn btn-sm btn-link bg-transparent text-danger" title="{{ trans('page.manage.tableButtons.delete') }}">
{!! config('icons.delete') !!}
</button>
{!! Form::close() !!}
</div>
@if (! $order->closed)
<div class="col p-0 text-center">
{!! Form::open(['route' => ['orders.destroy', $order], 'method' => 'DELETE']) !!}
<button type="submit" class="btn btn-sm btn-link bg-transparent text-danger" title="{{ trans('page.manage.tableButtons.delete') }}">
{!! config('icons.delete') !!}
</button>
{!! Form::close() !!}
</div>
@endif

</div>
</td>
Expand Down

0 comments on commit 0d74e13

Please sign in to comment.