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

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

@can('create', \App\Models\Merchant::class) {{ trans('app.bulk_translation_import') }} {{ trans('app.add_merchant') }} @endcan
@can('massDelete', \App\Models\Shop::class) @endcan @if (is_subscription_enabled()) @endif {{-- @if (is_incevio_package_loaded('wallet')) @endif --}} @if (is_incevio_package_loaded('dynamicCommission')) @endif @foreach ($shops as $shop) @can('massDelete', \App\Models\Shop::class) @endcan @if (is_subscription_enabled()) @endif {{-- @if (is_incevio_package_loaded('wallet')) @endif --}} @if (is_incevio_package_loaded('dynamicCommission')) @endif @endforeach
{{ trans('app.image') }} {{ trans('app.shop_name') }}{{ trans('app.current_billing_plan') }}{{ trans('packages.wallet.balance') }}{{ trans('packages.dynamicCommission.periodic_sold_amount') }}{{ trans('app.owner') }} {{ trans('app.option') }}
{{ trans('app.logo') }} {{ $shop->name }} @if ($shop->isVerified()) verified-badge @endif @if ($shop->isDown()) {{ trans('app.maintenance_mode') }} @endif {!! $shop->reward_badge !!} @can('update', $shop) @endcan {{ $shop->plan->name }} @if ($shop->onTrial()) {{ trans('app.trialing') }} @elseif($shop->hasExpiredPlan()) {{ trans('app.expired') }} @endif @if ($shop->onTrial() || $shop->hasExpiredPlan()) @if (Auth::user()->isAdmin()) @endif @endif {{ get_formated_currency($shop->balance, 2, config('system_settings.currency.id')) }}{{ get_formated_currency($shop->periodic_sold_amount, 2, config('system_settings.currency.id')) }} {{ trans('app.avatar') }}

@can('view', $shop->owner) {{ $shop->owner->getName() }} @else {{ $shop->owner->getName() }} @endcan @unless ($shop->owner->active) {{ trans('app.inactive') }} @endunless

@can('view', $shop)     @endcan @can('secretLogin', $shop->owner)   @endcan @can('update', $shop)     @if ($shop->primaryAddress)   @else   @endif @endcan @can('delete', $shop) {!! Form::open(['route' => ['admin.vendor.shop.trash', $shop->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\Shop::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.image') }} {{ trans('app.name') }} {{ trans('app.email') }} {{ trans('app.owner') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ trans('app.logo') }} {{ $trash->name }} {{ $trash->email }} {{ trans('app.avatar') }}

{{ $trash->owner->getName() }}

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