@extends('user.layouts.app') @section('content') @php $categoryList = ''; $mode = (!empty($data['topic_id'])) ? "Edit" : "Add"; @$topic_id = @$data['topic_id']; if($mode == 'Edit') { $topic_detail = $data['topic_detail']; } @endphp

{{$mode == 'Add' ? 'Post New Topic' : 'Edit Topic'}}

@include('user.includes.status')
{{ csrf_field() }}
All fields with star (*) are required
@if($errors->has('category')){{ $errors->first('category') }}@endif
@if($mode == 'Edit')
@endif
title : old('title') }}" class="form-control" placeholder="Enter title here...">
@if($errors->has('title')){{ $errors->first('title') }}@endif
@if($errors->has('ft_desc')){{ $errors->first('ft_desc') }}@endif
notify_me_of_replies,'1') : "checked" }} required="" />
notify_me_of_replies,'0') : "" }} />
@if($errors->has('notify_me_of_replies')){{ $errors->first('notify_me_of_replies') }}@endif
Please ensure this post adheres to our community guidelines
@include('user/includes/forumSidebar')
@endsection @section('scripts') @stop