@extends('admin::layouts.content') @section('page_title') {{ __('admin::app.settings.channels.edit-title') }} @stop @section('content')
@php $locale = core()->getRequestedLocaleCode(); @endphp
@csrf() {!! view_render_event('bagisto.admin.settings.channel.edit.before') !!} {{-- general --}}
@{{ errors.first('code') }}
@{{ errors.first('{!!$locale!!}[page_title]') }}
@php $selectedOptionIds = old('inventory_sources') ?: $channel->inventory_sources->pluck('id')->toArray() @endphp @{{ errors.first('inventory_sources[]') }}
@php $selectedOption = old('root_category_id') ?: $channel->root_category_id @endphp @{{ errors.first('root_category_id') }}
@{{ errors.first('hostname') }}
{{-- currencies and locales --}}
@php $selectedOptionIds = old('locales') ?: $channel->locales->pluck('id')->toArray() @endphp @{{ errors.first('locales[]') }}
@php $selectedOption = old('default_locale_id') ?: $channel->default_locale_id @endphp @{{ errors.first('default_locale_id') }}
@php $selectedOptionIds = old('currencies') ?: $channel->currencies->pluck('id')->toArray() @endphp @{{ errors.first('currencies[]') }}
@php $selectedOption = old('base_currency_id') ?: $channel->base_currency_id @endphp @{{ errors.first('base_currency_id') }}
{{-- design --}}
@php $selectedOption = old('theme') ?: $channel->theme @endphp
{{ __('admin::app.settings.channels.logo-size') }}
{{ __('admin::app.settings.channels.favicon-size') }}
@php $home_seo = $channel->translate($locale)['home_seo'] ?? $channel->home_seo; $seo = json_decode($home_seo); @endphp {{-- home page seo --}}
@{{ errors.first('{!!$locale!!}[page_title]') }}
@{{ errors.first('{!!$locale!!}[page_title]') }}
@{{ errors.first('{!!$locale!!}[page_title]') }}
{{-- maintenance mode --}}
{!! view_render_event('bagisto.admin.settings.channel.edit.after') !!}
@stop @push('scripts') @include('admin::layouts.tinymce') @endpush