@extends('admin.layouts.app') @php $forum_categories = @$forum_categories; $mode = "Add"; $action = route('forum.subcat.add'); $tagsJson = @$tagsJson; if(!empty($slug)){ $mode = "Edit"; $action = route('forum.subcat.edit',$slug); $selected_tags = @$selected_tags; $tags_json = @$tags_json; $imgurl = empty(get_url('forum-photo/'.$forum->id.'/crop/'.$forum->banner_image)) ? url("assets/images/noimage.png") : get_url('forum-photo/'.$forum->id.'/crop/'.$forum->banner_image); }else{ $slug = 0; $tags_json = 0; } $allow_image_ext = collect(config('common.allow_image_ext'))->implode(', '); $upload_image_ext = collect(config('common.allow_image_ext'))->implode('|'); $upload_img_size = config("common.upload_img_size"); $allowed_img_size = config("common.upload_img_size")*1024; @endphp @section('content')

Admin Forums

{{ $mode }} Forum Sub Category

@if(check_route_access('forum.subcat.list')) Forum Sub Category @endif
@include('admin.includes.status')
{{ csrf_field() }}
title : old('forum_title') }}">
@if ($errors->has('forum_title')){{ $errors->first('forum_title') }}@endif
@if ($errors->has('parent_cat_id')){{ $errors->first('parent_cat_id') }}@endif
@if ($errors->has('description')){{ $errors->first('description') }}@endif
keyword : old('keyword') }}">
@if ($errors->has('keyword')){{ $errors->first('keyword') }}@endif
@if ($errors->has('tags')){{ $errors->first('tags') }}@endif
@if($mode == "Edit")
The image file should be JPG, PNG or JPEG format. Image size must be under 2MB.
@endif
@endsection @section('scripts') @endsection