Server IP : 108.163.255.210 / Your IP : 18.191.68.112 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 : |
@extends('admin.layout') @section('content') <?php $cities = DB::table('cities')->get(); $states = DB::table('states')->get(); ?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> {{ trans('labels.AddAddresses') }} <small>{{ trans('labels.AddAddresses') }}...</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/customers')}}"><i class="fa fa-users"></i> {{ trans('labels.ListingAllCustomers') }}</a></li> <li class="active">{{ trans('labels.AddAddresses') }}</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.ListingCustomerAddresses') }}</h3> <div class="box-tools pull-right"> <button type="button" class="btn btn-block btn-primary" data-toggle="modal" data-target="#addAdressModal">{{ trans('labels.AddAddress') }}</button> </div> </div> <!-- /.box-header --> <div class="box-body"> <div class="row"> <div class="col-xs-12"> </div> </div> <div class="row"> <div class="col-xs-12"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>{{ trans('labels.ID') }}</th> <th>{{ trans('labels.BasicInfo') }}</th> <th>{{ trans('labels.AddressInfo') }}</th> <th>{{ trans('labels.Action') }}</th> </tr> </thead> <tbody class="contentAttribute"> @if (count($data['customer_addresses']) > 0) @foreach($data['customer_addresses'] as $customer_addresses) <tr> <td>{{ $customer_addresses->address_book_id }}</td> <td> <strong>{{ trans('labels.Company') }}:</strong> {{ $customer_addresses->entry_company }}<br> <!--<strong>Gender:</strong> {{ $customer_addresses->entry_gender }}<br>--> <strong>{{ trans('labels.FirstName') }}:</strong> {{ $customer_addresses->entry_firstname }}<br> <strong>{{ trans('labels.LastName') }}:</strong> {{ $customer_addresses->entry_lastname }} </td> <td> <strong>{{ trans('labels.Street') }}:</strong> {{ $customer_addresses->entry_street_address }}<br> <strong>{{ trans('labels.Suburb') }}:</strong> {{ $customer_addresses->entry_suburb }}<br> <strong>{{ trans('labels.Postcode') }}:</strong> {{ $customer_addresses->entry_postcode }}<br> <strong>{{ trans('labels.City') }}:</strong> @foreach($cities as $city) @if($city->id == $customer_addresses->entry_city) {{ $city->city }} @endif @endforeach<br> <strong>{{ trans('labels.State') }}:</strong> @foreach($states as $state) @if($state->id == $customer_addresses->entry_state) {{ $state->name }} @endif @endforeach<br> <strong>{{ trans('labels.Zone') }}:</strong> <?php $shipping_states = DB::table('zone_states')->where('state_id', $customer_addresses->entry_state)->first(); //dd($shipping_states); if($shipping_states){ $shipping_zone = DB::table('shipping_zones')->where('id', $shipping_states->zone_id)->first(); echo $shipping_zone->name; }else{ echo "N/A"; } ?> <br> <strong>{{ trans('labels.Country') }}:</strong> {{ $customer_addresses->countries_name }} </td> <td> <a class="badge bg-light-blue editAddressModal" customers_id = '{{ $data['customers_id'] }}' address_book_id = "{{ $customer_addresses->address_book_id }}" ><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a> <a customers_id = '{{ $data['customers_id'] }}' address_book_id = "{{ $customer_addresses->address_book_id }}" class="badge bg-red deleteAddressModal"><i class="fa fa-trash " aria-hidden="true"></i></a></td> </tr> @endforeach @else <tr> <td colspan="5">{{ trans('labels.NoRecordFound') }}</td> </tr> @endif </tbody> </table> </div> </div> <div class="box-footer text-center"> <a href="{{ URL::to('admin/customers')}}" class="btn btn-primary">{{ trans('labels.SaveComplete') }}</a> </div> <!-- /.box-body --> </div> <!-- addAdressModal --> <div class="modal fade" id="addAdressModal" tabindex="-1" role="dialog" aria-labelledby="addAdressModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="addAdressModalLabel">{{ trans('labels.AddAddress') }}</h4> </div> {!! Form::open(array('url' =>'admin/addNewProductAttribute', 'name'=>'addAddressFrom', 'id'=>'addAddressFrom', 'method'=>'post', 'class' => 'form-horizontal', 'enctype'=>'multipart/form-data')) !!} {!! Form::hidden('customers_id', $data['customers_id'] , array('class'=>'form-control', 'id'=>'entry_company')) !!} <div class="modal-body"> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Company') }}</label> <div class="col-sm-10 col-md-8"> {!! Form::text('entry_company', '', array('class'=>'form-control', 'id'=>'entry_company')) !!} </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.FirstName') }}</label> <div class="col-sm-10 col-md-8"> {!! Form::text('entry_firstname', '', array('class'=>'form-control', 'id'=>'entry_firstname')) !!} </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.LastName') }}</label> <div class="col-sm-10 col-md-8"> {!! Form::text('entry_lastname', '', array('class'=>'form-control', 'id'=>'entry_lastname')) !!} </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.StreetAddress') }}</label> <div class="col-sm-10 col-md-8"> {!! Form::text('entry_street_address', '', array('class'=>'form-control', 'id'=>'entry_street_address')) !!} </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Suburb') }}</label> <div class="col-sm-10 col-md-8"> {!! Form::text('entry_suburb', '', array('class'=>'form-control', 'id'=>'entry_suburb')) !!} </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Postcode') }}</label> <div class="col-sm-10 col-md-8"> {!! Form::text('entry_postcode', '', array('class'=>'form-control', 'id'=>'entry_postcode')) !!} </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Country') }}</label> <div class="col-sm-10 col-md-8"> <select id="country" class="form-control" name="entry_country_id"> <option value="">{{ trans('labels.SelectCountry') }}</option> @foreach($data['countries'] as $countries_data) <option value="{{ $countries_data->countries_id }}">{{ $countries_data->countries_name }}</option> @endforeach </select> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.State') }}</label> <div class="col-sm-10 col-md-8"> <select class="form-control zoneContent" name="entry_state" id="state"> <option value="">{{ trans('labels.SelectState') }}</option> </select> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.City') }}</label> <div class="col-sm-10 col-md-8"> <select class="form-control zoneContent" name="entry_city" id="city"> <option value="">{{ trans('Select City') }}</option> </select> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.DefaultShippingAddress') }}</label> <div class="col-sm-10 col-md-8"> <select id="is_default" class="form-control" name="is_default"> <option value="0">{{ trans('labels.No') }}</option> <option value="1">{{ trans('labels.Yes') }}</option> </select> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('labels.Close') }}</button> <button type="button" class="btn btn-primary" id="addAddress">{{ trans('labels.AddAddress') }}</button> </div> {!! Form::close() !!} </div> </div> </div> <!-- editAddressModal --> <div class="modal fade" id="editAddressModal" tabindex="-1" role="dialog" aria-labelledby="editAddressModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content editContent"> </div> </div> </div> <!-- deleteAddressModal --> <div class="modal fade" id="deleteAddressModal" tabindex="-1" role="dialog" aria-labelledby="deleteAddressModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="deleteAddressModalLabel">{{ trans('labels.DeleteAddress') }}</h4> </div> {!! Form::open(array('url' =>'admin/deleteAddress', 'name'=>'deleteAddress', 'id'=>'deleteAddress', 'method'=>'post', 'class' => 'form-horizontal', 'enctype'=>'multipart/form-data')) !!} {!! Form::hidden('customers_id', '', array('class'=>'form-control', 'id'=>'customers_id')) !!} {!! Form::hidden('address_book_id', '', array('class'=>'form-control', 'id'=>'address_book_id')) !!} <div class="modal-body"> <p>{{ trans('labels.DeleteAddressText') }}</p> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('labels.Cancel') }}</button> <button type="button" class="btn btn-primary" id="deleteAddressBtn">{{ trans('labels.Delete') }}</button> </div> {!! Form::close() !!} </div> </div> </div> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> <!-- Main row --> </div> <!-- /.row --> <!-- Main row --> </div> <!-- /.row --> </section> <!-- /.content --> @endsection