@if($site_langs->count() > 0)
@foreach($site_langs as $key => $lang)

    <input type="hidden" name="lang[]" value="{{ @$lang->id }}">

    <!-- title ar input -->
    <div class="form-group">
        <label class="control-label col-lg-3">@lang('home.title_'.@$lang->info->local) <span class="text-danger" title="@lang('home.required')">*</span></label>
        <div class="col-lg-12">
            <input type="text" name="title[]" class="form-control" placeholder="@lang('home.title_'.@$lang->info->local)" value="@if($page != null) {{@$page->translations->where('lang_id',$lang->id)->first()->title}} @endif">
        </div>
    </div>
    <!-- /title ar input -->
    {{-- content ar --}}
    <div class="form-group">
        <label class="control-label col-lg-3">@lang('home.content_'.@$lang->info->local) <span class="text-danger" title="@lang('home.required')">*</span></label>
        <div class="col-lg-12">
           <textarea name="content[]" id="{{ @$key }}" class="form-control"  placeholder="@lang('home.content_'.$lang->info->local)">@if($page != null) {{ @$page->translations->where('lang_id',@$lang->id)->first()->content }} @endif</textarea>
        
       </div>
   </div>
   {{-- content ar --}}
@endforeach 
@endif

   <!-- url input -->
   <div class="form-group">
    <label class="control-label col-lg-3">@lang('home.url_page') <span class="text-danger" title="@lang('home.required')">*</span></label>
    <div class="col-lg-12">
        <input type="text" name="url" class="form-control"  placeholder="@lang('home.url_page')" value="{{@$page->url}}">
        <small>@lang('home.Maintenance_Policy_Page_Usage')</small>
    </div>
</div>
<!-- /url input -->
<!-- Meta Tags input -->
<div class="form-group">
    <label class="control-label col-lg-3">@lang('home.meta_tags') <span class="text-danger" title="@lang('home.required')">*</span></label>
    <div class="col-lg-12">
        <input type="text" name="meta_tags" class="form-control tokenfield" placeholder="@lang('home.placeholder_metatags')" value="{{@$page->meta_tags}}">
    </div>
</div>

<!-- /Meta Tags input -->

{{-- Show page --}}
<div class="form-group">
    <label class="control-label col-lg-3">@lang('home.status')</label>
  <div class="row">
      <div class="col-lg-4">
        <div class="checkbox checkbox-switch">
            <input type="radio" name="status" class="switch" value="show" style="width:auto" @if(@$page->status  == 'show')  checked="checked"  @endif>
            <label>
               @lang('home.show')
           </label>
       </div>
   </div>
   <div class="col-lg-4">
    <div class="checkbox checkbox-switch">
        <input type="radio" name="status" class="switch" value="hide" style="width:auto" @if(@$page->status  == 'hide')  checked="checked" @endif >
        <label>
            @lang('home.hide')
        </label>
    </div>
  </div>
</div>
</div>
{{--Show page --}}

<!-- Logo uploader -->
<div class="form-group">
    <label class="control-label col-lg-3">@lang('home.icon') <span class="text-danger" title="@lang('home.required')"> *</span></label>
    <div class="col-lg-12">
        <input type="file" name="icon" class="file-styled" >
    </div>
</div>
<!-- /Logo uploader -->
