@extends('admin/layouts/admin') @section('title', __($translatePrefix . '.show.title', ['name' => $item->name])) @section('content')
@include('admin/shared/alerts')

{{ __($translatePrefix . '.show.title', ['name' => $item->name]) }}

{{ __($translatePrefix. '.show.subheading', ['date' => $item->created_at == null ? 'None' : $item->created_at->format('d/m/y')]) }}

@method('PUT') @csrf
@include('admin/shared/select', ['name' => 'product_id', 'label' => __('global.product'), 'value' => old('product_id', $item->product_id), 'options' => $products])
@include('admin/shared/select', ['name' => 'type', 'label' => __('global.type'), 'value' => old('type', $item->type), 'options' => $types])
@include('admin/shared/select', ['name' => 'force', 'label' => __($translatePrefix . '.force_label'), 'value' => old('force', $item->product->hasMetadata('basket_url') ? 'yes' : 'no'), 'options' => $force])
@include('admin/shared/checkbox', ['name' => 'show_on_card', 'label' => __($translatePrefix . '.show_on_card'), 'checked' => old('show_on_card', $item->show_on_card)])
@include('admin/shared/input', ['name' => 'max_services', 'label' => __($translatePrefix . '.max_services'), 'value' => old('max_services', $item->max_services), 'help' => __($translatePrefix . '.help')])
@include('admin/shared/input', ['name' => 'trial_days', 'label' => __($translatePrefix . '.trial_days'), 'value' => old('trial_days', $item->trial_days)])
@include('admin/shared/input', ['name' => 'max_allowed_services', 'label' => __($translatePrefix . '.max_allowed_services'), 'value' => old('max_allowed_services', $item->max_allowed_services), 'help' => __($translatePrefix . '.help')])
@include('admin/shared/input', ['name' => 'current_allowed_services', 'label' => __($translatePrefix . '.current_allowed_services'), 'value' => old('current_allowed_services', $item->current_allowed_services)])

{{ __($translatePrefix . '.show.table_title') }}
@if (count($services) == 0) @endif @foreach($services as $item) @endforeach
#
{{ __('global.service') }}
{{ __($translatePrefix . '.show.successfully') }}
{{ __('global.created') }}
{{ __('global.actions') }}

{{ __('global.no_results') }}

{{ $item->id }} {{ $item->name }} {{ $item->created_at != null ? $item->created_at->format('d/m/y') : 'None' }} {{ __('global.show') }}

@endsection