-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b530c7e
commit 1ac428f
Showing
11 changed files
with
173 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,123 +1,121 @@ | ||
@extends('layouts.dashboard_template') | ||
|
||
@section('content') | ||
<section class="content-header"> | ||
<h1> | ||
{{ $page_title ?? "Page Title" }} | ||
<small>{{ $page_description ?? '' }}</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="{{ route('dashboard') }}"><i class="fa fa-dashboard"></i> Dashboard</a></li> | ||
<li class="active">Profil</li> | ||
</ol> | ||
</section> | ||
|
||
<section class="content container-fluid"> | ||
|
||
@include( 'partials.flash_message' ) | ||
<div class="box box-primary"> | ||
|
||
@if (count($errors) > 0) | ||
<div class="alert alert-danger"> | ||
<strong>Ups!</strong> Ada beberapa masalah dengan masukan Anda.<br><br> | ||
<ul> | ||
@foreach ($errors->all() as $error) | ||
<li>{{ $error }}</li> | ||
@endforeach | ||
</ul> | ||
<section class="content-header"> | ||
<h1> | ||
{{ $page_title ?? 'Page Title' }} | ||
<small>{{ $page_description ?? '' }}</small> | ||
</h1> | ||
<ol class="breadcrumb"> | ||
<li><a href="{{ route('dashboard') }}"><i class="fa fa-dashboard"></i> Dashboard</a></li> | ||
<li class="active">Profil</li> | ||
</ol> | ||
</section> | ||
|
||
<section class="content container-fluid"> | ||
|
||
@include('partials.flash_message') | ||
|
||
<div class="box box-primary"> | ||
|
||
@if (count($errors) > 0) | ||
<div class="alert alert-danger"> | ||
<strong>Ups!</strong> Ada beberapa masalah dengan masukan Anda.<br><br> | ||
<ul> | ||
@foreach ($errors->all() as $error) | ||
<li>{{ $error }}</li> | ||
@endforeach | ||
</ul> | ||
|
||
</div> | ||
|
||
@endif | ||
</div> | ||
@endif | ||
|
||
<!-- form start --> | ||
{!! Form::model($profil, [ 'route' => ['data.profil.update', $profil->id], 'method' => 'put','id' => 'form-profil', 'class' => 'form-horizontal form-label-left', 'files'=>true] ) !!} | ||
<!-- form start --> | ||
{!! Form::model($profil, ['route' => ['data.profil.update', $profil->id], 'method' => 'put', 'id' => 'form-profil', 'class' => 'form-horizontal form-label-left', 'files' => true]) !!} | ||
|
||
<div class="box-body"> | ||
<div class="box-body"> | ||
|
||
@include( 'flash::message' ) | ||
@include('data.profil.form_edit') | ||
@include('flash::message') | ||
@include('data.profil.form_edit') | ||
|
||
</div> | ||
<!-- /.box-body --> | ||
<div class="box-footer"> | ||
<div class="pull-center"> | ||
<div class="control-group"> | ||
<a href="{{ route('data.profil.index') }}"> | ||
<button type="button" class="btn btn-default btn-sm"><i class="fa fa-refresh"></i> Batal</button> | ||
</a> | ||
<button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-save"></i> Simpan</button> | ||
</div> | ||
<!-- /.box-body --> | ||
<div class="box-footer"> | ||
<div class="pull-center"> | ||
<div class="control-group"> | ||
<a href="{{ route('data.profil.index') }}"> | ||
<button type="button" class="btn btn-default btn-sm"><i class="fa fa-refresh"></i> Batal</button> | ||
</a> | ||
<button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-save"></i> Simpan</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{!! Form::close() !!} | ||
{!! Form::close() !!} | ||
|
||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
@endsection | ||
|
||
@include(('partials.asset_select2')) | ||
@include('partials.asset_select2') | ||
@include('partials.tinymce_min') | ||
@include('partials.asset_inputmask') | ||
|
||
@push('scripts') | ||
@include('partials.profil_select2') | ||
{!! JsValidator::formRequest('App\Http\Requests\ProfilRequest', '#form-profil') !!} | ||
<script> | ||
@include('partials.profil_select2') | ||
{!! JsValidator::formRequest('App\Http\Requests\ProfilRequest', '#form-profil') !!} | ||
<script> | ||
$('#kabupaten_offline').inputmask('99.99'); | ||
$('#kecamatan_offline').inputmask('99.99.99'); | ||
$('#kabupaten_offline').inputmask('99.99'); | ||
$('#kecamatan_offline').inputmask('99.99.99'); | ||
$(function() { | ||
$(function () { | ||
function readURL(input) { | ||
if (input.files && input.files[0]) { | ||
var reader = new FileReader(); | ||
function readURL(input) { | ||
if (input.files && input.files[0]) { | ||
var reader = new FileReader(); | ||
reader.onload = function(e) { | ||
$('#showgambar').attr('src', e.target.result); | ||
} | ||
reader.onload = function (e) { | ||
$('#showgambar').attr('src', e.target.result); | ||
reader.readAsDataURL(input.files[0]); | ||
} | ||
reader.readAsDataURL(input.files[0]); | ||
} | ||
} | ||
function readURL2(input) { | ||
if (input.files && input.files[0]) { | ||
var reader = new FileReader(); | ||
function readURL2(input) { | ||
if (input.files && input.files[0]) { | ||
var reader = new FileReader(); | ||
reader.onload = function (e) { | ||
$('#showgambar2').attr('src', e.target.result); | ||
} | ||
reader.onload = function(e) { | ||
$('#showgambar2').attr('src', e.target.result); | ||
} | ||
reader.readAsDataURL(input.files[0]); | ||
reader.readAsDataURL(input.files[0]); | ||
} | ||
} | ||
} | ||
function readURL3(input) { | ||
if (input.files && input.files[0]) { | ||
var reader = new FileReader(); | ||
function readURL3(input) { | ||
if (input.files && input.files[0]) { | ||
var reader = new FileReader(); | ||
reader.onload = function (e) { | ||
$('#showgambar3').attr('src', e.target.result); | ||
} | ||
reader.onload = function(e) { | ||
$('#showgambar3').attr('src', e.target.result); | ||
} | ||
reader.readAsDataURL(input.files[0]); | ||
reader.readAsDataURL(input.files[0]); | ||
} | ||
} | ||
} | ||
$("#file_struktur").change(function () { | ||
readURL(this); | ||
}); | ||
$("#foto_kepala_wilayah").change(function () { | ||
readURL2(this); | ||
}); | ||
$("#file_struktur").change(function() { | ||
readURL(this); | ||
}); | ||
$("#foto_kepala_wilayah").change(function() { | ||
readURL2(this); | ||
}); | ||
$("#file_logo").change(function () { | ||
readURL3(this); | ||
$("#file_logo").change(function() { | ||
readURL3(this); | ||
}); | ||
}); | ||
}); | ||
</script> | ||
@endpush | ||
</script> | ||
@endpush |
Oops, something went wrong.