@extends('layouts.app') @section('css') @endsection @php $resto = \App\Models\Restaurants::find(\App\Helpers\CommonMethods::getRestuarantID()); $lang = $resto->default_lang; app()->setLocale($lang); if(session('app_lang') !==null){ $lang = session('app_lang'); app()->setLocale($lang); } @endphp @section('content')
@if(isset($blog)) Edit {!! $blog->name !!} @else New Blog @endif
@if(\Illuminate\Support\Facades\Auth::user()->role=="administrator" || \Illuminate\Support\Facades\Auth::user()->role=="admin_user" )
@csrf
@if(isset($blog) && !empty($blog->media)) {!! $blog->slug !!} @endif
is_published=="Yes") checked @endif @else checked @endif name="is_published" type="checkbox" />
@else
You are not authorized for this page
@endif
@endsection @section('js') @endsection