@include( 'main.components.breadcrumb', [ 'url' => 'module.view', 'breadcrumb_before' => 'Module manage', 'breadcrumb_after' => (isset($method) && $method=='create') ? 'Add new module' : 'Update module' ] )
@php $action = isset($method) && $method=='create' ? route('module.store') : route('module.update', $module->id); $title = (isset($method) && $method=='create') ? 'Add new module' : 'Update module'; @endphp
{{$title}}
@csrf
@error('name')
{{ $message }}
@enderror
@error('code')
{{ $message }}
@enderror
@if(isset($method) && $method=='create') @else publish) && $module->publish == \App\Constants\Number::PUBLISH) checked @endif /> @endif
 
@foreach($fields as $k => $field)
@error('field_name')
{{ $message }}
@enderror
@error('field_code')
{{ $message }}
@enderror
@if($field->publish == \App\Constants\Number::PUBLISH) @else @endif
@if($field->languages) @foreach($field->languages as $lang) @endforeach @endif
@endforeach
 
@if(isset($config['field'])) @endif