@extends('admin.layouts.app') @php $mode = "Add"; $action = route('forum.cat.add'); if(!empty($slug)){ $mode = "Edit"; $action = route('forum.cat.edit',$slug); $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; } $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
Dashboard
@if(check_route_access('forum.cat.list'))
Forum Category
@endif
Add New Forum Category
{{ $mode }} Forum Category
@if(check_route_access('forum.cat.list'))
Forum Category
@endif
@include('admin.includes.status')
{{ csrf_field() }}
Title
*
title : old('forum_title') }}">
@if ($errors->has('forum_title')){{ $errors->first('forum_title') }}@endif
Description
*
{!! ($mode == "Edit") ? $forum->description : old('description') !!}
@if ($errors->has('description')){{ $errors->first('description') }}@endif
Keyword
* (Enter keyword then press enter for new keyword.)
keyword : old('keyword') }}">
@if ($errors->has('keyword')){{ $errors->first('keyword') }}@endif
Status
status,'1') }}> Active
status,'0') }}> De-Active
Save Forum
Reset
@if($mode == "Edit")
The image file should be JPG, PNG or JPEG format. Image size must be under 2MB.
Upload Image
@endif
@endsection @section('scripts') @endsection