@if ( count($errors) > 0)
Erros encontrados:
@foreach ($errors->all() as $e)
- {{ $e }}
@endforeach
@endif
@if(Session::get("mensagem"))
{{Session::get("mensagem")}}
@endif
{!! Form::open(['route' => ['alterarConfiguracoes','subdominio' => Route::input("subdominio")]]) !!}
{!! Form::hidden('id_config', $configuracao->id, ['class'=>'form-control']) !!}
@if(!$configuracao -> tipo_dominio)
@endif
@if($configuracao -> tipo_dominio)
@endif
@php
$whatsapp = $configuracao ->conteudos() ->where('tipo','whatsapp') ->first();
@endphp
@php
$posicao = $whatsapp ? ($whatsapp ->conteudosMetas() ->where('meta_key','posicao') ->first() ->meta_valor ?? 'right') : 'right';
@endphp
@php
$habilitado = $whatsapp ? ($whatsapp ->conteudosMetas() ->where('meta_key','habilitado') ->first() ->meta_valor ?? 'false') : 'false';
@endphp
@php
$redesSociais = $configuracao ->conteudos() ->where('tipo','redesSociais') ->first()
@endphp
OUTRAS PERSONALIZAÇÕES
{!! Form::label('feed', 'Tipo de notícias') !!}
{!! Form::select('feed',[
'https://www.conjur.com.br/rss.xml' => 'Notícias para advogados (www.conjur.com.br)',
'https://g1.globo.com/rss/g1/ciencia-e-saude/' => 'Notícias para área da saúde (g1.globo.com)',
'http://g1.globo.com/dynamo/economia/rss2.xml' => 'Notícias da economia (g1.globo.com)',
'http://g1.globo.com/dynamo/mundo/rss2.xml' => 'Notícias internacionais (g1.globo.com)'
],$configuracao ->conteudos() -> where('tipo','feed') -> first() -> descricao ?? 'https://www.conjur.com.br/rss.xml', ['class'=>'form-control']) !!}
{!! Form::submit('Salvar', array('class' => 'btn btn-success')) !!}
Cancelar
{!! Form::close() !!}