Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
084983b5
Commit
084983b5
authored
Jun 20, 2018
by
Viral Solani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve Macros issue
parent
5ef73d4c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
69 deletions
+0
-69
FrontendController.php
app/Http/Controllers/Frontend/FrontendController.php
+0
-8
macros.blade.php
resources/views/frontend/macros.blade.php
+0
-60
Frontend.php
routes/Frontend/Frontend.php
+0
-1
No files found.
app/Http/Controllers/Frontend/FrontendController.php
View file @
084983b5
...
...
@@ -22,14 +22,6 @@ class FrontendController extends Controller
return
view
(
'frontend.index'
,
compact
(
'google_analytics'
,
$google_analytics
));
}
/**
* @return \Illuminate\View\View
*/
public
function
macros
()
{
return
view
(
'frontend.macros'
);
}
/**
* show page by $page_slug.
*/
...
...
resources/views/frontend/macros.blade.php
deleted
100755 → 0
View file @
5ef73d4c
@
extends
(
'frontend.layouts.app'
)
@
section
(
'content'
)
<
div
class
="
row
">
<div class="
col
-
xs
-
12
">
<div class="
panel
panel
-
default
">
<div class="
panel
-
heading
"><i class="
fa
fa
-
home
"></i> {{ trans('labels.frontend.macros.macro_examples') }}</div>
<div class="
panel
-
body
">
<div class="
form
-
group
">
<label>{{ trans('labels.frontend.macros.state.us.us') }}</label>
{{-- Shorthand for this is just selectState, set which version is shorthanded in Macros/Dropdowns --}}
{{ Form::selectStateUS('state', 'NY', ['class' => 'form-control']) }}
</div>
<div class="
form
-
group
">
<label>{{ trans('labels.frontend.macros.state.us.outlying') }}</label>
{{ Form::selectStateUSOutlyingTerritories('state_outlying', null, ['class' => 'form-control']) }}
</div>
<div class="
form
-
group
">
<label>{{ trans('labels.frontend.macros.state.us.armed') }}</label>
{{ Form::selectStateUSArmedForces('armed_forces', null, ['class' => 'form-control']) }}
</div>
<div class="
form
-
group
">
<label>{{ trans('labels.frontend.macros.territories.canada') }}</label>
{{ Form::selectCanadaTerritories('canada_territories', null, ['class' => 'form-control']) }}
</div>
<div class="
form
-
group
">
<label>{{ trans('labels.frontend.macros.state.mexico') }}</label>
{{ Form::selectStateMexico('mexico', null, ['class' => 'form-control']) }}
</div>
<div class="
form
-
group
">
<label>{{ trans('labels.frontend.macros.country.alpha') }}</label>
{{ Form::selectCountryAlpha('country_alpha', 'ISO 3166-2:US', ['class' => 'form-control']) }}
</div>
<div class="
form
-
group
">
<label>{{ trans('labels.frontend.macros.country.alpha2') }}</label>
{{-- Shorthand for this is just selectCountry, set which version is shorthanded in Macros/Dropdowns --}}
{{ Form::selectCountryAlpha2('country_alpha2', 'US', ['class' => 'form-control']) }}
</div>
<div class="
form
-
group
">
<label>{{ trans('labels.frontend.macros.country.alpha3') }}</label>
{{ Form::selectCountryAlpha3('country_alpha3', 'USA', ['class' => 'form-control']) }}
</div>
<div class="
form
-
group
">
<label>{{ trans('labels.frontend.macros.country.numeric') }}</label>
{{ Form::selectCountryNumeric('country_numeric', '840', ['class' => 'form-control']) }}
</div>
<div class="
form
-
group
">
<label>{{ trans('labels.frontend.macros.timezone') }}</label>
{{ Form::selectTimezone('timezone', 'America/New_York', ['class' => 'form-control']) }}
</div>
</div>
</div><!-- panel -->
</div><!-- col-md-10 -->
</div><!-- row -->
@endsection
\ No newline at end of file
routes/Frontend/Frontend.php
View file @
084983b5
...
...
@@ -5,7 +5,6 @@
* All route names are prefixed with 'frontend.'.
*/
Route
::
get
(
'/'
,
'FrontendController@index'
)
->
name
(
'index'
);
Route
::
get
(
'macros'
,
'FrontendController@macros'
)
->
name
(
'macros'
);
Route
::
post
(
'/get/states'
,
'FrontendController@getStates'
)
->
name
(
'get.states'
);
Route
::
post
(
'/get/cities'
,
'FrontendController@getCities'
)
->
name
(
'get.cities'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment