@extends('frontEnd.layout') @section('content') code; $title_var2 = "title_" . env('DEFAULT_LANGUAGE'); $details_var = "details_" . @Helper::currentLanguage()->code; $details_var2 = "details_" . env('DEFAULT_LANGUAGE'); if ($Topic->$title_var != "") { $title = $Topic->$title_var; } else { $title = $Topic->$title_var2; } if ($Topic->$details_var != "") { $details = $details_var; } else { $details = $details_var2; } $section = ""; try { if ($Topic->section->$title_var != "") { $section = $Topic->section->$title_var; } else { $section = $Topic->section->$title_var2; } } catch (Exception $e) { $section = ""; } ?>
@if($WebmasterSection->type==2 && $Topic->video_file!="") {{--video--}}
@if($WebmasterSection->title_status)

@if($Topic->icon !="")   @endif {{ $title }}

@endif
@if($Topic->video_type ==1) video_file); ?> @if($Youtube_id !="") {{-- Youtube Video --}} @endif @elseif($Topic->video_type ==2) video_file); ?> @if($Vimeo_id !="") {{-- Vimeo Video --}} @endif @elseif($Topic->video_type ==3) @if($Topic->video_file !="") {{-- Embed Video --}} {!! $Topic->video_file !!} @endif @else @endif
@elseif($WebmasterSection->type==3 && $Topic->audio_file!="") {{--audio--}}
@if($WebmasterSection->title_status)

@if($Topic->icon !="")   @endif {{ $title }}

@endif @if($Topic->photo_file !="") {{ $title }} @endif

@elseif(count($Topic->photos)>0) {{--photo slider--}}
@if($WebmasterSection->title_status)

@if($Topic->icon !="")   @endif {{ $title }}

@endif
    @if($Topic->photo_file !="")
  • {{ $title }}
  • @endif @foreach($Topic->photos as $photo)
  • {{ $photo->title  }}
  • @endforeach

@else {{--one photo--}}
@if($WebmasterSection->title_status)

@if($Topic->icon !="")   @endif {{ $title }}

@endif @if($Topic->photo_file !="") {{ $title }}
@endif
@endif {{--Additional Feilds--}} @if(count($Topic->webmasterSection->customFields->where("in_page",true)) >0)
code; $cf_title_var2 = "title_" . env('DEFAULT_LANGUAGE'); ?> @foreach($Topic->webmasterSection->customFields->where("in_page",true) as $customField) view_permission_groups != "") { $view_permission_groups = explode(",", $customField->view_permission_groups); } if (in_array(0, $view_permission_groups) || $customField->view_permission_groups=="") { // have permission & continue ?> @if($customField->in_page) $cf_title_var != "") { $cf_title = $customField->$cf_title_var; } else { $cf_title = $customField->$cf_title_var2; } $cf_saved_val = ""; $cf_saved_val_array = array(); if (count($Topic->fields) > 0) { foreach ($Topic->fields as $t_field) { if ($t_field->field_id == $customField->id) { if ($customField->type == 7) { // if multi check $cf_saved_val_array = explode(", ", $t_field->field_value); } else { $cf_saved_val = $t_field->field_value; } } } } ?> @if(($cf_saved_val!="" || count($cf_saved_val_array) > 0) && ($customField->lang_code == "all" || $customField->lang_code == @Helper::currentLanguage()->code)) @if($customField->type ==12) {{--Vimeo Video Link--}} @if($CF_Vimeo_id !="")
{!! $cf_title !!} :
{{-- Vimeo Video --}}
@endif @elseif($customField->type ==11) {{--Youtube Video Link--}} @if($CF_Youtube_id !="")
{!! $cf_title !!} :
{{-- Youtube Video --}}
@endif @elseif($customField->type ==10) {{--Video File--}}
{!! $cf_title !!} :
@elseif($customField->type ==9) {{--Attach File--}} @elseif($customField->type ==8) {{--Photo File--}}
{!! $cf_title !!} :
{{ $cf_title }} - {{ $title }}
@elseif($customField->type ==7) {{--Multi Check--}}
{!! $cf_title !!} :
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); $line_num = 1; ?> @foreach ($cf_details_lines as $cf_details_line) @if (in_array($line_num,$cf_saved_val_array)) {!! $cf_details_line !!} @endif @endforeach
@elseif($customField->type ==6) {{--Select--}}
{!! $cf_title !!} :
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); $line_num = 1; ?> @foreach ($cf_details_lines as $cf_details_line) @if ($line_num == $cf_saved_val) {!! $cf_details_line !!} @endif @endforeach
@elseif($customField->type ==5) {{--Date & Time--}}
{!! $cf_title !!} :
{!! Helper::formatDate($cf_saved_val)." ".date("h:i A", strtotime($cf_saved_val)) !!}
@elseif($customField->type ==4) {{--Date--}}
{!! $cf_title !!} :
{!! Helper::formatDate($cf_saved_val) !!}
@elseif($customField->type ==3) {{--Email Address--}}
{!! $cf_title !!} :
{!! $cf_saved_val !!}
@elseif($customField->type ==2) {{--Number--}}
{!! $cf_title !!} :
{!! $cf_saved_val !!}
@elseif($customField->type ==1) {{--Text Area--}}
{!! $cf_title !!} :
{!! nl2br($cf_saved_val) !!}
@else {{--Text Box--}}
{!! $cf_title !!} :
{!! $cf_saved_val !!}
@endif @endif @endif @endforeach

@endif {{--End of -- Additional Feilds--}} {!! $Topic->$details !!} @if($Topic->attach_file !="") attach_file, "."); $file_ext = strtolower($file_ext); ?>
@if($file_ext ==".jpg"|| $file_ext ==".jpeg"|| $file_ext ==".png"|| $file_ext ==".gif")
{{ $title }}
@else {!! Helper::GetIcon(URL::to('uploads/topics/'),$Topic->attach_file) !!}  {{ __('frontend.downloadAttach') }} @endif
@endif {{-- Show Additional attach files --}} @if(count($Topic->attachFiles)>0)
@foreach($Topic->attachFiles as $attachFile) $title_var != "") { $file_title = $attachFile->$title_var; } else { $file_title = $attachFile->$title_var2; } ?> @endforeach
@endif @if(count($Topic->maps) >0)

{{ __('frontend.locationMap') }}

@endif @if($WebmasterSection->comments_status)
@if(count($Topic->approvedComments)>0)

{{ __('frontend.comments') }}


@foreach($Topic->approvedComments as $comment) date)); ?>
{{$comment->name}}
{{$comment->name}}
{{ $dtformated }}
{!! nl2br(strip_tags($comment->comment)) !!}
@endforeach @endif

{{ __('frontend.newComment') }}

 {{ __('frontend.youCommentSent') }}   {{ __('frontend.refresh') }}
{{ __('frontend.youMessageNotSent') }}
{{Form::open(['route'=>['Home'],'method'=>'POST','class'=>'commentForm'])}}
{!! Form::text('comment_name',@Auth::user()->name, array('placeholder' => __('frontend.yourName'),'class' => 'form-control','id'=>'comment_name', 'data-msg'=> __('frontend.enterYourName'),'data-rule'=>'minlen:4')) !!}
{!! Form::email('comment_email',@Auth::user()->email, array('placeholder' => __('frontend.yourEmail'),'class' => 'form-control','id'=>'comment_email', 'data-msg'=> __('frontend.enterYourEmail'),'data-rule'=>'email')) !!}
{!! Form::textarea('comment_message','', array('placeholder' => __('frontend.comment'),'class' => 'form-control','id'=>'comment_message','rows'=>'5', 'data-msg'=> __('frontend.enterYourComment'),'data-rule'=>'required')) !!}
@if(env('NOCAPTCHA_STATUS', false))
{!! NoCaptcha::renderJs(@Helper::currentLanguage()->code) !!} {!! NoCaptcha::display() !!}
@endif
{{Form::close()}}
@endif @if($WebmasterSection->order_status)

{{ __('frontend.orderForm') }}

 {{ __('frontend.youOrderSent') }}
{{ __('frontend.youMessageNotSent') }}
{{Form::open(['route'=>['Home'],'method'=>'POST','class'=>'orderForm'])}}
{!! Form::text('order_name',@Auth::user()->name, array('placeholder' => __('frontend.yourName'),'class' => 'form-control','id'=>'order_name', 'data-msg'=> __('frontend.enterYourName'),'data-rule'=>'minlen:4')) !!}
{!! Form::text('order_phone',"", array('placeholder' => __('frontend.phone'),'class' => 'form-control','id'=>'order_phone', 'data-msg'=> __('frontend.enterYourPhone'),'data-rule'=>'minlen:4')) !!}
{!! Form::email('order_email',@Auth::user()->email, array('placeholder' => __('frontend.yourEmail'),'class' => 'form-control','id'=>'order_email', 'data-msg'=> __('frontend.enterYourEmail'),'data-rule'=>'email')) !!}
{!! Form::textarea('order_message','', array('placeholder' => __('frontend.notes'),'class' => 'form-control','id'=>'order_message','rows'=>'5')) !!}
@if(env('NOCAPTCHA_STATUS', false))
{!! NoCaptcha::renderJs(@Helper::currentLanguage()->code) !!} {!! NoCaptcha::display() !!}
@endif
{{Form::close()}}
@endif @if($WebmasterSection->related_status) @if(count($Topic->relatedTopics)) @endif @endif
@if(count($Categories) >0) @include('frontEnd.includes.side') @endif
@endsection @section('footerInclude') @if(count($Topic->maps) >0) @foreach($Topic->maps->slice(0,1) as $map) longitude . "," . $map->latitude; ?> @endforeach code; $map_details_var = "details_" . @Helper::currentLanguage()->code; ?> @endif @endsection