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

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

@can('create', \App\Models\SubscriptionPlan::class) {{ trans('app.add_subscription_plan') }} @endcan
@can('massDelete', \App\Models\SubscriptionPlan::class) @endcan @foreach ($subscription_plans as $subscriptionPlan) @can('massDelete', \App\Models\SubscriptionPlan::class) @endcan @endforeach
{{ trans('app.#') }} {{ trans('app.name') }} {{ trans('app.cost_per_month') }} {{ trans('app.team_size') }} {{ trans('app.inventory_limit') }} {{ trans('app.option') }}
@if ($subscriptionPlan->shops_count) @else @endif {{ $subscriptionPlan->name }} @if ($subscriptionPlan->featured) {{ trans('app.featured') }} @endif {{ $subscriptionPlan->shops_count }} {{ get_formated_currency($subscriptionPlan->cost, 2, config('system_settings.currency.id')) }} {{ $subscriptionPlan->team_size }} {{ $subscriptionPlan->inventory_limit }} @can('view', $subscriptionPlan)   @endcan @can('update', $subscriptionPlan)   @endcan @can('delete', $subscriptionPlan) @if ($subscriptionPlan->shops_count) @else {!! Form::open(['route' => ['admin.setting.subscriptionPlan.trash', $subscriptionPlan->plan_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() !!} @endif @endcan

@can('massDelete', \App\Models\SubscriptionPlan::class) {!! Form::open(['route' => ['admin.setting.subscriptionPlan.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.cost_per_month') }} {{ trans('app.team_size') }} {{ trans('app.inventory_limit') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ $trash->name }} {{ get_formated_currency($trash->cost, 2, config('system_settings.currency.id')) }} {{ $trash->team_size }} {{ $trash->inventory_limit }} {{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.setting.subscriptionPlan.destroy', $trash->plan_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