@extends('dashboard.layouts.master') code; $title_var2 = "title_" . env('DEFAULT_LANGUAGE'); if ($WebmasterSection->$title_var != "") { $WebmasterSectionTitle = $WebmasterSection->$title_var; } else { $WebmasterSectionTitle = $WebmasterSection->$title_var2; } ?> @section('title', $WebmasterSectionTitle) @push("after-styles") @endpush @section('content')
code; $cf_title_var2 = "title_" . env('DEFAULT_LANGUAGE'); $title_var = "title_" . @Helper::currentLanguage()->code; $title_var2 = "title_" . env('DEFAULT_LANGUAGE'); if ($WebmasterSection->$title_var != "") { $WebmasterSectionTitle = $WebmasterSection->$title_var; } else { $WebmasterSectionTitle = $WebmasterSection->$title_var2; } ?>

{!! $WebmasterSectionTitle !!}

{{ __('backend.home') }} / {!! $WebmasterSectionTitle !!}
{{Form::open(['route'=>['topics',$WebmasterSection->id],'method'=>'GET','id'=>'filter_form','target'=>''])}}
@if(count($WebmasterSection->customFields->where("in_search",true))==0) @if($WebmasterSection->date_status)
@else
@endif @endif
{!! Form::text('find_q',@$_GET['find_q'], array('placeholder' => __('backend.searchFor'),'class' => 'form-control','id'=>'find_q', "autocomplete"=>"off")) !!}
@if($WebmasterSection->date_status)
{!! Form::text('date',((@$_GET['date']!="")?Helper::formatDate(@$_GET['date']):""), array('placeholder' => __('backend.topicDate'),'class' => 'form-control','id'=>'find_date')) !!}
@endif @foreach($WebmasterSection->customFields as $customField) @if($customField->in_search) $cf_title_var != "") { $cf_title = $customField->$cf_title_var; } else { $cf_title = $customField->$cf_title_var2; } // check field language status $cf_land_identifier = ""; $cf_land_active = false; $cf_land_dir = @Helper::currentLanguage()->direction; if ($customField->lang_code != "all") { $ct_language = @Helper::LangFromCode($customField->lang_code); $cf_land_identifier = @Helper::languageName($ct_language); $cf_land_dir = $ct_language->direction; if ($ct_language->box_status) { $cf_land_active = true; } } if ($customField->lang_code == "all") { $cf_land_active = true; } // required Status $cf_required = ""; ?> @if($cf_land_active) @if($customField->type ==12) @elseif($customField->type ==11) @elseif($customField->type ==10) @elseif($customField->type ==9) @elseif($customField->type ==8) @elseif($customField->type ==7 || $customField->type ==6)
@elseif($customField->type ==5 || $customField->type ==4)
{!! Form::text('customField_'.$customField->id,(@$_GET['customField_'.$customField->id]!="")?Helper::formatDate(@$_GET['customField_'.$customField->id]):"", array('placeholder' => $cf_title,'class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'', 'dir'=>$cf_land_dir)) !!}
@elseif($customField->type ==3)
{!! Form::email('customField_'.$customField->id,@$_GET['customField_'.$customField->id], array('placeholder' => $cf_title,'class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'', 'dir'=>$cf_land_dir)) !!}
@elseif($customField->type ==2)
{!! Form::number('customField_'.$customField->id,@$_GET['customField_'.$customField->id], array('placeholder' => $cf_title,'class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'','min'=>0, 'dir'=>$cf_land_dir)) !!}
@else
{!! Form::text('customField_'.$customField->id,@$_GET['customField_'.$customField->id], array('placeholder' => $cf_title,'class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'', 'dir'=>$cf_land_dir)) !!}
@endif @endif @endif @endforeach
{{Form::close()}}
{{Form::open(['route'=>['topicsUpdateAll',$WebmasterSection->id],'method'=>'post'])}}
@if(@Auth::user()->permissionsGroup->edit_status) @endif @if($WebmasterSection->title_status) @endif @if($WebmasterSection->date_status) @endif @if($WebmasterSection->expire_date_status) @endif @if($WebmasterSection->visits_status) @endif @if($WebmasterSection->case_status) @endif @foreach($WebmasterSection->customFields as $customField) view_permission_groups != "") { $view_permission_groups = explode(",", $customField->view_permission_groups); } if (in_array(Auth::user()->permissions_id, $view_permission_groups) || in_array(0, $view_permission_groups) || $customField->view_permission_groups == "") { // have permission & continue ?> @if($customField->in_table) @if ($customField->lang_code == "all" || $customField->lang_code == @Helper::currentLanguage()->code) $cf_title_var != "") { $cf_title = $customField->$cf_title_var; } else { $cf_title = $customField->$cf_title_var2; } ?> @endif @endif @endforeach
{{ __('backend.topicName') }}{{ __('backend.topicDate') }}{{ __('backend.expireDate') }}{{ __('backend.visits') }}{{ __('backend.status') }}{{ $cf_title }}{{ __('backend.options') }}
{{Form::close()}}
@foreach($WebmasterSection->customFields as $customField) @if($customField->in_statics && ($customField->type==6 || $customField->type==7))
code; $cf_details_var2 = "details_en" . env('DEFAULT_LANGUAGE'); if ($customField->$cf_details_var != "") { $cf_details = $customField->$cf_details_var; } else { $cf_details = $customField->$cf_details_var2; } $cf_details_lines = preg_split('/\r\n|[\r\n]/', $cf_details); $heigth = count($cf_details_lines) * 12; if ($heigth < 200) { $heigth = 200; } ?>
{!! $customField->$title_var !!}
@endif @endforeach
@endsection @push("after-scripts") @endpush