@extends('admin.layouts.master') @section('content') @php $translation_language = app()->getLocale(); @endphp

{{ trans('app.attributes') }}

@can('create', \App\Models\AttributeValue::class) {{ trans('app.add_attribute_value') }} @endcan @can('create', \App\Models\Attribute::class) {{ trans('app.add_attribute') }} @endcan
@foreach ($attributes as $attribute) @endforeach
@can('massDelete', \App\Models\Attribute::class) @endcan {{ trans('app.#') }} {{ trans('app.position') }} {{ trans('app.name') }} {{ trans('app.type') }} {{ trans('app.categories') }} {{ trans('app.entities') }} {{ trans('app.option') }}
@can('massDelete', $attribute) @else @endcan {{ $attribute->order }} @can('view', $attribute) {{ $attribute->name }} @else {{ $attribute->name }} @endcan {{ $attribute->attributeType->type }} {{ $attribute->categories_count }} {{ $attribute->attribute_values_count }} @can('view', $attribute)   @endcan @can('update', $attribute)     @endcan @can('delete', $attribute) {!! Form::open(['route' => ['admin.catalog.attribute.trash', $attribute->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

@can('massDelete', \App\Models\Attribute::class) {!! Form::open(['route' => ['admin.catalog.attribute.emptyTrash'], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm btn btn-default btn-flat ajax-silent', 'title' => trans('help.empty_trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'right']) !!} {!! Form::close() !!} @else @endcan {{ trans('app.trash') }}

@foreach ($trashes as $trash) @endforeach
{{ trans('app.name') }} {{ trans('app.type') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ $trash->name }} {{ $trash->attributeType->type }} {{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.catalog.attribute.destroy', $trash->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.delete_permanently'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan
@endsection @section('page-script') @include('plugins.drag-n-drop') @endsection