@extends('admin.layouts.admin') @section('content')
@if(Session::has('message'))

{{ Session::get('message') }}

@endif
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@php $blogs = blogs(); $assigned_blogs = explode(',', $section->blogs); @endphp @if (count($blogs))
@csrf
@foreach ($blogs as $item)
  • id, $assigned_blogs) ? 'checked' : '' }}>
  • @endforeach
    @else
    No blog available! Kindly add some blog post first.
    @endif
    @endsection