@can('massDelete', \App\Models\Warehouse::class)
|
@endcan
|
{{ $warehouse->name }} |
{{ $warehouse->email }} |
{{ $warehouse->manager ? $warehouse->manager->getName() : '' }} |
{{ $warehouse->active ? trans('app.active') : trans('app.inactive') }} |
@can('view', $warehouse)
@endcan
@can('update', $warehouse)
@if ($warehouse->primaryAddress)
@else
@endif
@endcan
@can('delete', $warehouse)
{!! Form::open(['route' => ['admin.stock.warehouse.trash', $warehouse->id], 'method' => 'delete', 'class' => 'data-form']) !!}
{!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!}
{!! Form::close() !!}
@endcan
|
@endforeach