@can('massDelete', \App\Models\Supplier::class)
|
@endcan
|
{{ $supplier->name }} |
{{ $supplier->contact_person }} |
{{ $supplier->email }} |
{{ $supplier->active ? trans('app.active') : trans('app.inactive') }} |
@can('view', $supplier)
@endcan
@can('update', $supplier)
@if ($supplier->primaryAddress)
@else
@endif
@endcan
@can('delete', $supplier)
{!! Form::open(['route' => ['admin.stock.supplier.trash', $supplier->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