Commit af52c61f authored by Viral Solani's avatar Viral Solani

Merge branch 'master' of https://github.com/viralsolani/laravel-adminpanel into test-cases

parents 92a4f824 b2822ec2
APP_NAME=Laravel APP_NAME="Laravel Admin Panel"
APP_ENV=local APP_ENV=local
APP_KEY=base64:O+TrollIDwasHEREtMG9kBc+/Q32exQLusNVhnq558w= APP_KEY=base64:O+TrollIDwasHEREtMG9kBc+/Q32exQLusNVhnq558w=
APP_DEBUG=true APP_DEBUG=true
......
...@@ -44,12 +44,6 @@ class DashboardController extends Controller ...@@ -44,12 +44,6 @@ class DashboardController extends Controller
$user = User::find($userId); $user = User::find($userId);
$user->first_name = $input['first_name']; $user->first_name = $input['first_name'];
$user->last_name = $input['last_name']; $user->last_name = $input['last_name'];
$user->address = $input['address'];
$user->state_id = $input['state_id'];
$user->country_id = config('access.constants.default_country');
$user->city_id = $input['city_id'];
$user->zip_code = $input['zip_code'];
$user->ssn = $input['ssn'];
$user->updated_by = access()->user()->id; $user->updated_by = access()->user()->id;
if ($user->save()) { if ($user->save()) {
......
This diff is collapsed.
{ {
"/js/frontend.js": "/js/frontend.945469bbbc12df3ad9e1.js", "/js/frontend.js": "/js/frontend.70ee44a92d84e7318a9d.js",
"/js/backend.js": "/js/backend.79d9e4698dadbc0d93c7.js", "/js/backend.js": "/js/backend.9cdae6ab449e701ce881.js",
"/mix.js": "/mix.247ab120fe7680658924.js", "/mix.js": "/mix.247ab120fe7680658924.js",
"/css/frontend.css": "/css/frontend.3af0a6cbd7d1d8d042f2a37e97008b7c.css", "/css/frontend.css": "/css/frontend.3af0a6cbd7d1d8d042f2a37e97008b7c.css",
"/css/backend.css": "/css/backend.f8550f50504e5b8ef6055285205f223a.css", "/css/backend.css": "/css/backend.f8550f50504e5b8ef6055285205f223a.css",
"/css/backend-custom.css": "/css/backend-custom.6366f7137897ebe08267f74909121944.css", "/css/backend-custom.css": "/css/backend-custom.18e74fbe4c755b817a022d6d3d4e76b1.css",
"/js/backend-custom.js": "/js/backend-custom.e6ea05e1824d0dd8e7c62027c135b7f2.js", "/js/backend-custom.js": "/js/backend-custom.694670b0d97bf54111bac3bd91ba3fcf.js",
"/js/dataTable.js": "/js/dataTable.f968d300a6a0b871f138f114361259c8.js" "/js/dataTable.js": "/js/dataTable.f968d300a6a0b871f138f114361259c8.js"
} }
\ No newline at end of file
...@@ -30,45 +30,6 @@ ...@@ -30,45 +30,6 @@
</div> </div>
</div> </div>
<div class="form-group">
{{ Form::label('address', trans('validation.attributes.frontend.register-user.address'), ['class' => 'col-lg-2 control-label']) }}
<div class="col-lg-10">
{{ Form::input('textarea', 'address', null, ['class' => 'form-control box-size', 'placeholder' => trans('validation.attributes.frontend.register-user.address')]) }}
</div>
</div>
{{-- state --}}
<div class="form-group">
{{ Form::label('state_id', trans('validation.attributes.frontend.register-user.state'), ['class' => 'col-lg-2 control-label']) }}
<div class="col-lg-10">
{{ Form::select('state_id', [] , null, ['class' => 'form-control box-size st', 'placeholder' => trans('validation.attributes.frontend.register-user.state'), 'id' => 'state']) }}
</div><!--col-lg-10-->
</div><!--form-group-->
{{-- city --}}
<div class="form-group">
{{ Form::label('city_id', trans('validation.attributes.frontend.register-user.city'), ['class' => 'col-lg-2 control-label']) }}
<div class="col-lg-10">
{{ Form::select('city_id', [], null, ['class' => 'form-control box-size ct', 'placeholder' => trans('validation.attributes.frontend.register-user.city'), 'id' => 'city']) }}
</div><!--col-lg-10-->
</div><!--form-group-->
{{-- zipcode --}}
<div class="form-group">
{{ Form::label('zip_code', trans('validation.attributes.frontend.register-user.zipcode'), ['class' => 'col-lg-2 control-label']) }}
<div class="col-lg-10">
{{ Form::input('name', 'zip_code', null, ['class' => 'form-control box-size', 'placeholder' => trans('validation.attributes.frontend.register-user.zipcode')]) }}
</div><!--col-lg-10-->
</div><!--form-group-->
{{-- SSN --}}
<div class="form-group">
{{ Form::label('ssn', trans('validation.attributes.frontend.register-user.ssn'), ['class' => 'col-lg-2 control-label']) }}
<div class="col-lg-10">
{{ Form::input('name', 'ssn', null, ['class' => 'form-control box-size', 'placeholder' => trans('validation.attributes.frontend.register-user.ssn')]) }}
</div><!--col-lg-10-->
</div><!--form-group-->
<div class="form-group"> <div class="form-group">
<div class="col-lg-10 col-md-offset-4"> <div class="col-lg-10 col-md-offset-4">
{{ Form::submit(trans('labels.general.buttons.update'), ['class' => 'btn btn-primary', 'id' => 'update-profile']) }} {{ Form::submit(trans('labels.general.buttons.update'), ['class' => 'btn btn-primary', 'id' => 'update-profile']) }}
...@@ -83,57 +44,6 @@ ...@@ -83,57 +44,6 @@
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
Backend.Profile.init(); Backend.Profile.init();
//Getting States of default contry
ajaxCall("{{route('admin.get.states')}}");
//Getting Cities of select State
$("#state").on("change", function() {
var stateId = $(this).val();
var url = "{{route('admin.get.cities')}}";
ajaxCall(url, stateId);
});
function ajaxCall(url, data = null)
{
$.ajax({
url: url,
type: "POST",
data: {stateId: data},
success: function(result) {
if(result != null)
{
if(result.status == "city")
{
var userCity = "{{ $logged_in_user->city_id }}";
var options;
$.each(result.data, function(key, value) {
if(key == userCity)
options += "<option value='" + key + "' selected>" + value + "</option>";
else
options += "<option value='" + key + "'>" + value + "</option>";
});
$("#city").html('');
$("#city").append(options);
}
else
{
var userState = "{{ $logged_in_user->state_id }}";
var options;
$.each(result.data, function(key, value) {
if(key == userState)
options += "<option value='" + key + "' selected>" + value + "</option>";
else
options += "<option value='" + key + "'>" + value + "</option>";
});
$("#state").append(options);
$("#state").trigger('change');
}
}
}
});
}
}); });
</script> </script>
@endsection @endsection
\ No newline at end of file
...@@ -56,7 +56,6 @@ ...@@ -56,7 +56,6 @@
@section("after-scripts") @section("after-scripts")
{{ Html::script('js/nestable2/jquery.nestable.js') }} {{ Html::script('js/nestable2/jquery.nestable.js') }}
<script type="text/javascript"> <script type="text/javascript">
//FinBuilders.Blog.init();
var formName = '_add_custom_url_form'; var formName = '_add_custom_url_form';
var lastId = null; var lastId = null;
$('#menu-items').nestable({ $('#menu-items').nestable({
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
@section('after-scripts') @section('after-scripts')
{{-- For DataTables --}} {{-- For DataTables --}}
@include('includes.datatables') @include('includes.datatables')
<script> <script>
$(function() { $(function() {
var dataTable = $('#menus-table').dataTable({ var dataTable = $('#menus-table').dataTable({
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
} }
}); });
FinBuilders.DataTableSearch.init(dataTable); Backend.DataTableSearch.init(dataTable);
}); });
</script> </script>
@endsection @endsection
\ No newline at end of file
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
@section('after-scripts') @section('after-scripts')
{{-- For DataTables --}} {{-- For DataTables --}}
{{ Html::script(mix('js/dataTable.js')) }} {{ Html::script(mix('js/dataTable.js')) }}
<script> <script>
$(function() { $(function() {
var dataTable = $('#modules-table').dataTable({ var dataTable = $('#modules-table').dataTable({
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
} }
}); });
FinBuilders.DataTableSearch.init(dataTable); Backend.DataTableSearch.init(dataTable);
}); });
</script> </script>
@endsection @endsection
\ No newline at end of file
screenshots/dashboard.png

52.2 KB | W: | H:

screenshots/dashboard.png

37.6 KB | W: | H:

screenshots/dashboard.png
screenshots/dashboard.png
screenshots/dashboard.png
screenshots/dashboard.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/settings.png

81.9 KB | W: | H:

screenshots/settings.png

58.9 KB | W: | H:

screenshots/settings.png
screenshots/settings.png
screenshots/settings.png
screenshots/settings.png
  • 2-up
  • Swipe
  • Onion skin
screenshots/users.png

96.5 KB | W: | H:

screenshots/users.png

77 KB | W: | H:

screenshots/users.png
screenshots/users.png
screenshots/users.png
screenshots/users.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment