@extends($templatePathAdmin.'layout') @section('main')

{{ $title_description??'' }}

@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($layout !='collection')
@if ($errors->has('url')) {{ $errors->first('url') }} @else {{ sc_language_render('admin.link.helper_url') }} @endif
@if ($errors->has('target')) {{ $errors->first('target') }} @endif
@if ($errors->has('collection_id')) {{ $errors->first('collection_id') }} @endif
@endif
@if ($errors->has('group')) {{ $errors->first('group') }} @endif
@if ($errors->has('sort')) {{ $errors->first('sort') }} @endif
@if (sc_check_multi_shop_installed()) {{-- select shop_store --}} @php $listStore = []; if (function_exists('sc_get_list_store_of_link_detail')) { $oldData = sc_get_list_store_of_link_detail($link['id'] ?? ''); } else { $oldData = null; } $shop_store = old('shop_store', $oldData); if(is_array($shop_store)){ foreach($shop_store as $value){ $listStore[] = $value; } } @endphp
@if ($errors->has('shop_store')) {{ $errors->first('shop_store') }} @endif
{{-- //select shop_store --}} @endif
@endsection @push('styles') @endpush @push('scripts') @endpush