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

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

@can('create', \App\Models\Merchant::class) {{ trans('app.add_merchant') }} @endcan
@can('massDelete', \App\Models\Merchant::class) @endcan @if (is_subscription_enabled()) @endif @foreach ($merchants as $merchant) @can('massDelete', \App\Models\Merchant::class) @endcan @if (is_subscription_enabled()) @endif @endforeach
{{ trans('app.avatar') }} {{ trans('app.nice_name') }} {{ trans('app.full_name') }} {{ trans('app.shop') }}{{ trans('app.current_billing_plan') }}{{ trans('app.option') }}
{{ trans('app.avatar') }} {{ $merchant->nice_name }} @unless ($merchant->active) {{ trans('app.inactive') }} @endunless {{ $merchant->name }} @if ($merchant->owns->name) {{ trans('app.logo') }}

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

@if ($merchant->owns->deleted_at) {{ trans('app.in_trash') }} @endif @if ($merchant->owns->isDown()) {{ trans('app.maintenance_mode') }} @elseif(!$merchant->owns->active) {{ trans('app.inactive') }} @endif @endif
{{ optional($merchant->owns)->plan->name }} @if ($merchant->owns->onTrial()) {{ trans('app.trialing') }} @endif @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.shop.trash', $merchant->owns->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\Merchant::class) {!! Form::open(['route' => ['admin.vendor.shop.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.avatar') }} {{ 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 @if ($trash->owns->deleted_at) {{ trans('app.in_trash') }} @endif
{{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.vendor.shop.destroy', $trash->owns->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