HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/medvalue.komma.pro/resources/views/kms/partials/entity/index.blade.php
{{-- Header --}}
<div class="entity-header">
    <div class="entity-header-attributes">
        <div class="entity-thumbnail">
            {!! $section->getThumbnail() !!}
        </div>

        <h2>{!! $title !!}</h2>
    </div>


    <div class="entity-buttons">
        @if($section->showSave())
            {!! Form::button($section->submitButtonLabel, ['class' => 'save', 'id' => 'save-button', 'ng-click' => 'save()']) !!}

            {{--@if(\Session::has('success'))--}}
                {{--{!! Form::submit($section->submitButtonLabel, ['class' => 'btn btn-save btn-success-glow', 'id' => 'save-button']) !!}--}}
            {{--@elseif(\Session::has('errors'))--}}
                {{--{!! Form::submit($section->submitButtonLabel, ['class' => 'btn btn-save', 'id' => 'save-button']) !!}--}}
            {{--@else--}}
                {{--{!! Form::submit($section->submitButtonLabel, ['class' => 'btn btn-save btn-brand-glow', 'id' => 'save-button']) !!}--}}
            {{--@endif--}}
        @endif

        @if($section->showDelete() and $section->getModelId())
                @if(isset($siteSlug))
                {{--{!! Form::open(['method' => 'DELETE' , 'route' => ['kms.{site}.'.$slug.'.destroy', 'site' => $siteSlug, $slug => $id], 'class' => 'inline' ]) !!}--}}
                {!! Form::open(['method' => 'DELETE' , 'route' => [$slug.'.destroy', 'site' => $siteSlug, $slug => $id], 'class' => 'inline' ]) !!}
            @else
                {{--{!! Form::open(['method' => 'DELETE' , 'route' => ['kms.'.$slug.'.destroy', $slug => $id], 'class' => 'inline' ]) !!}--}}
                {!! Form::open(['method' => 'DELETE' , 'route' => [''.$slug.'.destroy', $slug => $id], 'class' => 'inline' ]) !!}
            @endif
            {!! Form::submit('', ['class' => 'trash', 'kms-confirm' => 'Delete item', 'kms-confirm-message' => __('kms/global.confirm_deletion')]) !!}
            {!! Form::close() !!}
        @endif
    </div>
</div>

{{-- Tabs --}}
<div class="entity-tabs">
    <ul>
        @foreach($section->getTabs() as $tabIndex => $tab)
            <li class="{!! ($tabIndex == 0) ? 'active': '' !!}{!! $tab->hasErrors($errors->getMessageBag()) ? ' error' : ''!!}">
                <a href="#{!! $tab->getSlug() !!}">{!! $tab->getName() !!}</a>
            </li>
        @endforeach
    </ul>
</div>

{{--@if($section->submitRoute)--}}
    {{--{!! Form::open(['method' => 'post', 'route' => $section->submitRoute, 'id' => 'entity-form', 'files' => true, 'autocomplete' => 'off']) !!}--}}
{{--@else--}}
    {{--@if(isset($section->siteId))--}}
        {{--@if($id)--}}
            {{--{!! Form::open(['method' => 'put', 'route' => ['kms/{sitename}/'.$slug, 'sitename' => $siteSlug, $slug => $id], 'id' => 'entity-form', 'files' => true, 'autocomplete' => 'off']) !!}--}}
            {{--{!! Form::open(['method' => 'put', 'route' => [$slug.'.update', 'site' => $siteSlug, $slug => $id], 'id' => 'entity-form', 'files' => true, 'autocomplete' => 'off']) !!}--}}
        {{--@else--}}
            {{--{!! Form::open(['method' => 'post', 'route' => ['kms.{site}.'.$slug.'.store', 'site' => $siteSlug], 'id' => 'entity-form', 'files' => true, 'autocomplete' => 'off']) !!}--}}
            {{--{!! Form::open(['method' => 'post', 'route' => [$slug.'.store', 'site' => $siteSlug], 'id' => 'entity-form', 'files' => true, 'autocomplete' => 'off']) !!}--}}
        {{--@endif--}}
    {{--@else--}}
        {{--@if($id)--}}
            {{--{!! Form::open(['method' => 'put', 'route' => ['kms.'.$slug.'.update', $slug => $id], 'id' => 'entity-form', 'files' => true, 'autocomplete' => 'off']) !!}--}}
            {{--{!! Form::open(['method' => 'put', 'route' => [''.$slug.'.update', $slug => $id], 'id' => 'entity-form', 'files' => true, 'autocomplete' => 'off']) !!}--}}
        {{--@else--}}
            {{--{!! Form::open(['method' => 'post', 'route' => ['kms.'.$slug.'.store'], 'id' => 'entity-form', 'files' => true, 'autocomplete' => 'off']) !!}--}}
            {{--{!! Form::open(['method' => 'post', 'route' => [''.$slug.'.store'], 'id' => 'entity-form', 'files' => true, 'autocomplete' => 'off']) !!}--}}
        {{--@endif--}}
    {{--@endif--}}
{{--@endif--}}
{{--{!! Form::open(['method' => $saveRoute['method'], 'route' => [$saveRoute['route'], $saveRoute['parameters']], 'id' => 'entity-form', 'files' => true, 'autocomplete' => 'off']) !!}--}}
<form action="{!! $saveRoute['route'] !!}" id="entity-form" autocomplete="off" method="post" enctype="multipart/form-data" data-max-upload-size="{{ $maxUploadSize }}">
    {{ csrf_field() }}
    {{ method_field($saveRoute['method']) }}


{!! Form::submit('submit-cloaked', ['ng-hide' => '', 'ng-cloak' => '']) !!}

{!! Form::hidden('tab-slug', isset($tabSlug) ? $tabSlug : '', ['id' => 'tab-slug']) !!}

@if(isset($section->currentCategory))
    {!! Form::hidden('current_product_category', $section->currentCategory) !!}
@endif



<div class="entity-attributes" ng-controller="KmsAttributes">
    {{--{{ dd($section->getTabs()) }}--}}
    @foreach($section->getTabs() as $key => $tab)
        <div id="tab-content-{!! $tab->getSlug() !!}" class="tab-content @if($key == 0) active @endif">
            {{--{{dd($section->getTabs())}}--}}

            {{--@if($tab->getName() == 'en')--}}
                {{--{{dd($tab->getItems())}}--}}
            {{--@endif--}}

            {{-- Tab Attributes --}}
            @foreach($tab->getItems() as $attribute)
                <div class="entity-attribute-wrapper{{ Auth::user()->role->isAtLeast($attribute->getMinimumUserRole()) ? "": " hidden" }}">
                    {!! $attribute->render() !!}
                </div>
            @endforeach

            @if(\Session::get('error_data'))
                @include('kms.partials.importErrors')
            @endif
        </div>
    @endforeach
</div>
</form>


<script>
    document.addEventListener('DOMContentLoaded', function () {
        new TabsController('tab-content', 'entity-tabs', 'active', true, 'tab-slug');
        new ConfirmationController("input.trash", "{{ __('kms/global.confirm_header') }}",  "{{ __('kms/global.confirm_deletion') }}", "{{ __('kms/global.yes') }}", "{{ __('kms/global.no') }}")
    });
</script>