@extends('admin::layout') @section('header')

{{ trans('admin::messages.edit') }} {!! $xPanel->entity_name !!}

@endsection @section('content')
@if ($xPanel->hasAccess('list')) {{ trans('admin::messages.back_to_all') }} {{-- $xPanel->entity_name_plural --}}

@endif {!! Form::open(array('url' => $xPanel->route.'/'.$entry->getKey(), 'method' => 'put', 'files'=>$xPanel->hasUploadFields('update', $entry->getKey()))) !!}
@if (!in_array($xPanel->getModel()->getTable(), ['settings', 'home_sections', 'domain_settings']))

{{ trans('admin::messages.edit') }}

@endif
@if(view()->exists('vendor.admin.panel.' . $xPanel->entity_name . '.form_content')) @include('vendor.admin.panel.' . $xPanel->entity_name . '.form_content', ['fields' => $xPanel->getFields('update', $entry->getKey())]) @elseif(view()->exists('vendor.admin.panel.form_content')) @include('vendor.admin.panel.form_content', ['fields' => $xPanel->getFields('update', $entry->getKey())]) @else @include('admin::panel.form_content', ['fields' => $xPanel->getFields('update', $entry->getKey())]) @endif
{!! Form::close() !!}
@endsection