@extends('admin.template.master') @section('title', $title) @section('content') @php $id = ''; $title = ''; if(isset($blogData)) { $id = $blogData->id; $title = $blogData->title; } $userId= Auth::user()->id; @endphp