@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

{{ $mode }} Forum Category

@if(check_route_access('forum.cat.list')) Forum 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('description')){{ $errors->first('description') }}@endif
keyword : old('keyword') }}">
@if ($errors->has('keyword')){{ $errors->first('keyword') }}@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