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

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

@can('create', App\Merchant::class) {{ trans('app.add_merchant') }} @endcan
@foreach($merchants as $merchant ) @endforeach
{{ trans('app.nice_name') }} {{ trans('app.full_name') }} {{ trans('app.shop') }} {{ trans('app.current_billing_plan') }} {{ trans('app.option') }}
@if($merchant->image) {{ trans('app.avatar') }} @else {{ trans('app.avatar') }} @endif

{{ $merchant->nice_name }} @unless($merchant->active) {{ trans('app.inactive') }} @endunless

@can('view', $merchant) {{ $merchant->name }} @else {{ $merchant->name }} @endcan @if($merchant->owns->name) {{ trans('app.logo') }}

{{ $merchant->owns->name }}

@endif
{{ $merchant->owns->current_billing_plan }} @can('view', $merchant)   @endcan @can('secretLogin', $merchant)   @endcan @can('update', $merchant)   @if($merchant->primaryAddress)   @else   @endif @endcan @can('delete', $merchant) {!! Form::open(['route' => ['admin.vendor.merchant.trash', $merchant->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

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

@foreach($trashes as $trash ) @endforeach
{{ trans('app.nice_name') }} {{ trans('app.full_name') }} {{ trans('app.email') }} {{ trans('app.shop') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ trans('app.avatar') }}

{{ $trash->nice_name }}

{{ $trash->name }} {{ $trash->email }} @if($trash->owns) {{ trans('app.logo') }}

{{ $trash->owns->name }}

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