public function getEditStore($id)
 {
     $store = MerchantStore::with(['Address', 'tags', 'Merchant'])->where('id', $id)->first();
     $tags = Tag::all();
     $cities = Cities::all();
     $areas = Areas::all();
     $states = States::all();
     $countries = Countries::all();
     $output = ['store' => $store, 'tags' => $tags, 'areas' => $areas, 'cities' => $cities, 'states' => $states, 'countries' => $countries];
     return view('admin.storeEdit', $output);
 }
Exemple #2
0
echo \Theme::instance()->view('views/user/_tree_links');
?>
				                    </div><!-- EOF Sidebar Holder -->
				                    
				                    <div class="clear"></div>
				                    
								<?php 
echo \Form::close();
?>
			                    
						    </div>
			    		</div>
			    	</div>
			    </div>
			    <!-- EOF Content -->
                
                <!-- This two arrays are requred for script below to work -->
                <script type="text/javascript">
                    var countries = <?php 
echo json_encode(\App\Countries::forge()->getCountries());
?>
;
                    var states = <?php 
echo json_encode(\App\States::forge()->getAll());
?>
;
                </script>
                <?php 
\Theme::instance()->asset->js('country_state_functions.js', array(), 'basic');
?>
                            
 public function profile()
 {
     $country_list = Countries::all();
     $timezones = Timezones::all();
     return view('auth/profile', ['countries' => $country_list, 'timezone' => $timezones]);
 }
                                </div>
                            <?php 
    }
    ?>
                            <?php 
    if (in_array('country', $options)) {
        ?>
                                <div class="filter_width <?php 
        echo $margin();
        ?>
">
                                    <?php 
        echo \Form::label('Country');
        ?>
                                    <?php 
        echo \Form::select('country', \Input::get('country'), array('false' => "Select") + \App\Countries::forge()->getCountries(), array('class' => 'select_init filter_width'));
        ?>
                                </div>
                            <?php 
    }
    ?>
                            <?php 
    if (in_array('postcode', $options)) {
        ?>
                                <div class="filter_width <?php 
        echo $margin();
        ?>
">
                                    <div class="toggable_dates date_content">
                                        <?php 
        echo \Form::label('Postcode');
 /**
  * @return mixed
  */
 public function profile()
 {
     $data['countries'] = Countries::all();
     return view('staff/profile', $data);
 }
 public function allElementsV2()
 {
     $output = ['tags' => Tag::get(), 'cities' => Cities::with('Areas')->get(), 'states' => States::get(), 'countries' => Countries::get(), 'appElements' => AppElement::find(1)];
     return response()->json(['response_code' => 'RES_STS', 'messages' => 'States', 'data' => $output]);
 }
 public function getCountries()
 {
     return response()->json(['response_code' => 'RES_CTS', 'messages' => 'Countries', 'data' => Countries::get()]);
 }
 public function destroy($id)
 {
     $country = Countries::find($id);
     $country->delete();
     return redirect('countries');
 }
Exemple #9
0
                <div class="formRow">
                    <?php 
echo \Form::label('Suburb:');
?>
                    <div class="input_holder"><?php 
echo \Form::input('shipping_suburb', \Input::post('shipping_suburb', isset($user) ? $user->get('metadata.shipping_suburb') : ''));
?>
</div>
                </div>
                <div class="formRow">
                    <?php 
echo \Form::label('Country:');
?>
                    <div class="input_holder">
                        <?php 
echo \Form::select('shipping_country', \Input::post('shipping_country', isset($user) ? $user->get('metadata.shipping_country') : ''), \App\Countries::forge()->getCountries(), array('class' => 'select_init two_col_wide_input country_select'));
?>
                    </div>
                </div>
                <div class="formRow">
                    <div style="width: 50%; float: left;">
                        <?php 
echo \Form::label('State:');
?>
                        <div class="input_holder">

                            <?php 
if (!\App\States::forge()->getStateProvinceArray(\Input::post('shipping_country', 'AU'))) {
    ?>
                                <?php 
    echo \Form::input('shipping_state', \Input::post('shipping_state', isset($user) ? $user->get('metadata.shipping_state') : ''), array('class' => 'state_select state_input'));
Exemple #10
0
                                <?php 
// Configs
$invoice = array('' => '-') + \Config::get('details.invoice', array());
$status = array('' => '-') + \Config::get('details.status', array());
$delivery = array('' => '-') + \Config::get('details.delivery', array());
$app_countries = \App\Countries::forge();
$countries = $app_countries->getCountries();
$app_states = \App\States::forge();
?>
                <?php 
echo \Theme::instance()->view('views/_partials/blue_header', array('title' => 'Manage Orders'));
?>
                
                <?php 
echo \Theme::instance()->view('views/order/_navbar_links');
?>
	            
	            <!-- Content -->
			    <div class="content_wrapper">
			    	<div class="content_holder">
			    		
			    		<div class="elements_holder">
			    		
                            <div class="row-fluid breadcrumbs_holder">
			    				<div class="breadcrumbs_position">
                                    <?php 
\Breadcrumb::set('Home', 'admin/dashboard');
\Breadcrumb::set('Orders');
\Breadcrumb::set('Manage Orders', 'admin/order/list');
\Breadcrumb::set('ID: ' . $order->id);
echo \Breadcrumb::create_links();