@extends('admin.layouts.master') @section('content')

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

@can('create', \App\Models\Manufacturer::class) {{ trans('app.bulk_translation_import') }} {{ trans('app.add_manufacturer') }} @endcan
@can('massDelete', \App\Models\Manufacturer::class) @endcan @foreach ($manufacturers as $manufacturer) @can('massDelete', \App\Models\Manufacturer::class) @endcan @endforeach
{{ trans('app.image') }} {{ trans('app.name') }} {{ trans('app.phone') }} {{ trans('app.email') }} {{ trans('app.country') }} {{ trans('app.products') }}  
{{ trans('app.image') }}

{{ $manufacturer->name }}

@unless ($manufacturer->active) {{ trans('app.inactive') }} @endunless
{{ $manufacturer->phone }} {{ $manufacturer->email }} {{ optional($manufacturer->country)->name }} {{ $manufacturer->products_count }} @can('view', $manufacturer)   @endcan @can('update', $manufacturer)   @endcan @can('delete', $manufacturer) {!! Form::open(['route' => ['admin.catalog.manufacturer.trash', $manufacturer->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\Manufacturer::class) {!! Form::open(['route' => ['admin.catalog.manufacturer.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.phone') }} {{ trans('app.email') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ trans('app.image') }}

{{ $trash->name }}

{{ $trash->phone }} {{ $trash->email }} {{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.catalog.manufacturer.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