WP File Manager
Current Path:
/
home
/
itutorethiopia
/
public_html
/
resources
/
views
/
forum
/
Name
Action
..
edit.blade.php
Edit
form.blade.php
Edit
forumtopic.blade.php
Edit
index.blade.php
Edit
userforum.blade.php
Edit
view.blade.php
Edit
Editing: index.blade.php
@extends('layouts.app') @section('content') @php usort($tableGrid, "SiteHelpers::_sort") @endphp <div class="page-content row"> <!-- Page header --> <div class="page-header"> <div class="page-title"> <h3> {{ $pageTitle }} <small>{{ $pageNote }}</small></h3> </div> <ul class="breadcrumb"> <li><a href="{{ URL::to('dashboard') }}"> {{ Lang::get('core.m_dashboard') }}</a></li> <li class="active">{{ $pageTitle }}</li> </ul> </div> <div class="page-content-wrapper m-t"> <div class="sbox animated fadeInRight"> <div class="sbox-title"> <h5> <i class="fa fa-table"></i> {{ $pageTitle }}</h5> </div> <div class="sbox-content forum_admin"> <div class="toolbar-line "> @if($access['is_add'] ==1) <a href="{{ URL::to('forum/update?return='.$return) }}" class="tips btn btn-sm btn-white" title="{{ Lang::get('core.btn_create') }}"> <i class="fa fa-plus-circle "></i> {{ Lang::get('core.btn_create') }}</a> @endif @if($access['is_remove'] ==1) <a href="javascript://ajax" onclick="bsetecDelete();" class="tips btn btn-sm btn-white" title="{{ Lang::get('core.btn_remove') }}"> <i class="fa fa-minus-circle "></i> {{ Lang::get('core.btn_remove') }}</a> @endif <a href="{{ URL::to('forumcategory') }}" class="tips btn btn-sm btn-white" title=""> <i class="fa fa-plus-circle "></i> {{ Lang::get('core.forum_category') }}</a> <a href="{{ URL::to('forumcomments') }}" class="tips btn btn-sm btn-white" title=""> <i class="fa fa-plus-circle "></i> {{ Lang::get('core.Forum_Comments') }}</a> </div> {!! Form::open(array('url'=>'forum/delete/', 'class'=>'form-horizontal' ,'id' =>'bsetecTable' )) !!} <div class="table-responsive" style="min-height:300px;"> <table class="table table-striped "> <thead> <tr> <th class="number"> {{ Lang::get('core.no') }} </th> <th> </th> @foreach ($tableGrid as $t) @if($t['view'] =='1') @if($t['label']=='Name') <th>{{ Lang::get('core.Category_Name') }}</th> @else <th>{{ $t['label'] }}</th> @endif @endif @endforeach <th width="70" >{{ Lang::get('core.btn_action') }}</th> </tr> </thead> <tbody> <tr id="bsetec-quick-search" > <td class="number"> # </td> <td><input type="checkbox" class="checkall" /> </td> <td> {!! Form::select('category_name',[''=>'--select--']+\DB::table('forum_category')->join('forum','forum.category_id','=','forum_category.forum_cat_id')->pluck('name','name')->toArray(),$category_name,array('class'=>'form-control')) !!} </td> <td> <input type="text" name="forum_topic" class="form-control input-sm" value="{{ $forum_topic or '' }}"> </td> <td> <input type="text" name="forum_content" class="form-control input-sm" value="{{ $forum_content or '' }}"> </td> <td> <input class="form-control" placeholder="" name="first_name" type="text" value="{{ $first_name or '' }}"> </td> <td> {!! Form::select('status', array('' => '--select--','1' => 'Enable','0' => 'Disable'),$status,array('class'=>'form-control')); !!} </td> <td > <input type="hidden" value="Search"> <button type="button" class=" do-quick-search btn btn-xs btn-info">{{ Lang::get('core.GO') }}</button> <a href="{!! URL::to('user-forum/index') !!}"><button type="button" class=" do-quick-search btn btn-xs btn-info"> Reset </button></a></td> </tr> @foreach ($rowData as $row) <!-- {!! $row->status !!} --> <tr> <td width="30"> {{ ++$i }} </td> <td width="50"><input type="checkbox" class="ids" name="id[]" value="{{ $row->forum_id }}" /> </td> @foreach ($tableGrid as $field) @php ($fieldname =$field['field']) @if($field['view'] =='1') <td> @if($field['attribute']['image']['active'] =='1') {!! SiteHelpers::showUploadedFile($row->$fieldname,$field['attribute']['image']['path']) !!} @else @php ( $conn = (isset($field['conn']) ? $field['conn'] : array() ) ) @if($fieldname=='status') <?php if($row->$fieldname =='1'){ $row->$fieldname = '<span class="label label-success">Enable</span>'; } else{ $row->$fieldname = '<span class="label label-danger">Disable</span>'; }?> {!! SiteHelpers::gridDisplay($row->$fieldname ,$field['field'],array()) !!} @elseif($fieldname=='forum_content') <p>{!! $row->forum_content !!}</p> @else {!! SiteHelpers::gridDisplay($row->$fieldname,$field['field'],$conn) !!} @endif @endif </td> @endif @endforeach <td> @if($access['is_detail'] ==1) <a href="{{ URL::to('forum/show/'.$row->forum_id.'?return='.$return)}}" class="tips btn btn-xs btn-white" title="{{ Lang::get('core.btn_view') }}"><i class="fa fa-search "></i></a> @endif @if($access['is_edit'] ==1) <a href="{{ URL::to('forum/update/'.$row->forum_id.'?return='.$return) }}" class="tips btn btn-xs btn-white" title="{{ Lang::get('core.btn_edit') }}"><i class="fa fa-edit "></i></a> @endif </td> </tr> @endforeach @if(count($rowData)==0) <tr> <td colspan="20" align="center"><h3>No data Found</h3></td> </tr> @endif </tbody> </table> <input type="hidden" name="md" value="" /> </div> {!! Form::close() !!} @include('footer') </div> </div> </div> </div> <script> $(document).ready(function(){ $('select[name=sort] option[value]:first').next().text("{{ Lang::get('core.Category_Name') }}"); $('.do-quick-search').click(function(){ $('#bsetecTable').attr('action','{!! URL::to("user-forum/multisearch?return=".$return)!!}'); $('#bsetecTable').submit(); }); }); </script> @stop