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/vebon.komma.pro/resources/views/kms/partials/entity/index.blade.php
{{-- Header --}}
<div class="entity-header">
    <div class="entity-thumbnail">
        {!! $section->getThumbnail() !!}
    </div>

    <div class="entity-title">{!! $title !!}</div>

    <div class="entity-buttons">
        @if($section->showSave())

            @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
            &nbsp;
        @endif

        @if($section->showDelete() and $section->getModelId())
                @if(isset($section->siteId))
                {!! Form::open(['method' => 'DELETE' , 'route' => ['kms.{site}.'.$slug.'.destroy', 'site' => $siteSlug, $slug => $id], 'class' => 'inline' ]) !!}
            @else
                {!! Form::open(['method' => 'DELETE' , 'route' => ['kms.'.$slug.'.destroy', $slug => $id], 'class' => 'inline' ]) !!}
            @endif
            {!! Form::submit('', ['class' => 'btn btn-danger btn-trash', 'kms-confirm' => 'Delete item', 'kms-confirm-message' => 'Are you sure you want to delete this item?']) !!}
            {!! Form::close() !!}
        @endif
    </div>
</div>

{{-- Tabs --}}
<div class="entity-tabs">
    <ul class="nav nav-tabs">
        @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.{site}.'.$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']) !!}
        @endif
    @else
        @if($id)
            {!! Form::open(['method' => 'put', 'route' => ['kms.'.$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']) !!}
        @endif
    @endif

@endif

{!! 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">

    @foreach($section->getTabs() as $tab)

        <div id="tab-content-{!! $tab->getSlug() !!}" class="tab-content">

            {{-- Tab Attributes --}}
            @foreach($tab->getItems() as $attribute)
                {!! $attribute->render() !!}
            @endforeach

            @if($tab->hasTabs())
                @include('kms/partials/entity.tabs', ['tab'=> $tab,'firstTabSlug'=>''])
            @endif

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

{!! Form::close() !!}