Commit e284fbd4 by Palti Sinaga

view

parent 4299c229
@extends('adminlte::layouts.app') @extends('adminlte::layouts.app')
@section('htmlheader_title') @section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }} {{ trans('adminlte_lang::message.home') }}
@endsection @endsection
@section('main-content') @section('main-content')
<div class="container-fluid spark-screen"> <div class="box box-success">
<div class="row"> <div class="box-header with-border">
<div class="col-md-10 col-md-offset-1"> <h3 class="box-title"> Tambah Pemilik Homestay </h3>
<div class="panel panel-default"> </div>
<div id="app"> <div class="box-body">
@if (count($errors) > 0) <div id="app">
<div class="alert alert-danger"> @if (count($errors) > 0)
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br> <div class="alert alert-danger">
<ul> <strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
@foreach ($errors->all() as $error) <ul>
<li>{{ $error }}</li> @foreach ($errors->all() as $error)
@endforeach <li>{{ $error }}</li>
</ul> @endforeach
</div> </ul>
@endif </div>
<div class="register-box-body"> @endif
<p class="login-box-msg">{{ trans('adminlte_lang::message.registermember') }}</p> <div class="register-box-body">
<form action="{{ url('admin') }}" method="post"> <p class="login-box-msg">{{ trans('adminlte_lang::message.registermember') }}</p>
<input type="hidden" name="_token" value="{{ csrf_token() }}"> <form action="{{ url('admin') }}" method="post">
<div class="form-group has-feedback"> <input type="hidden" name="_token" value="{{ csrf_token() }}">
<input type="text" class="form-control" placeholder="{{ trans('adminlte_lang::message.fullname') }}" name="name" value="{{ old('name') }}"/> <div class="form-group has-feedback">
<span class="glyphicon glyphicon-user form-control-feedback"></span> <input type="text" class="form-control" placeholder="{{ trans('adminlte_lang::message.fullname') }}" name="name" value="{{ old('name') }}"/>
</div> <span class="glyphicon glyphicon-user form-control-feedback"></span>
<div class="form-group has-feedback"> </div>
<input type="text" class="form-control" placeholder="{{ trans('adminlte_lang::message.username') }}" name="username" value="{{ old('username') }}"/> <div class="form-group has-feedback">
<span class="glyphicon glyphicon-user form-control-feedback"></span> <input type="text" class="form-control" placeholder="{{ trans('adminlte_lang::message.username') }}" name="username" value="{{ old('username') }}"/>
</div> <span class="glyphicon glyphicon-user form-control-feedback"></span>
<div class="form-group has-feedback"> </div>
<input type="email" class="form-control" placeholder="{{ trans('adminlte_lang::message.email') }}" name="email" value="{{ old('email') }}"/> <div class="form-group has-feedback">
<span class="glyphicon glyphicon-envelope form-control-feedback"></span> <input type="email" class="form-control" placeholder="{{ trans('adminlte_lang::message.email') }}" name="email" value="{{ old('email') }}"/>
</div> <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
<div class="form-group has-feedback"> </div>
<input type="password" class="form-control" placeholder="{{ trans('adminlte_lang::message.password') }}" name="password"/> <div class="form-group has-feedback">
<span class="glyphicon glyphicon-lock form-control-feedback"></span> <input type="password" class="form-control" placeholder="{{ trans('adminlte_lang::message.password') }}" name="password"/>
</div> <span class="glyphicon glyphicon-lock form-control-feedback"></span>
<div class="form-group has-feedback"> </div>
<input type="password" class="form-control" placeholder="{{ trans('adminlte_lang::message.retrypepassword') }}" name="password_confirmation"/> <div class="form-group has-feedback">
<span class="glyphicon glyphicon-log-in form-control-feedback"></span> <input type="password" class="form-control" placeholder="{{ trans('adminlte_lang::message.retrypepassword') }}" name="password_confirmation"/>
</div> <span class="glyphicon glyphicon-log-in form-control-feedback"></span>
<div class="form-group has-feedback"> </div>
<input value="Owner" type="text" class="form-control" placeholder="{{ trans('adminlte_lang::message.role') }}" name="role" disabled/> <div class="form-group has-feedback">
<span class="glyphicon glyphicon-wrench form-control-feedback"></span> <input value="Owner" type="text" class="form-control" placeholder="{{ trans('adminlte_lang::message.role') }}" name="role" disabled/>
</div> <span class="glyphicon glyphicon-wrench form-control-feedback"></span>
<div class="row"> </div>
<div class="col-xs-1"> <div class="row">
<label> <div class="col-xs-1">
<div class="checkbox_register icheck"> <label>
<label> <div class="checkbox_register icheck">
<input type="checkbox" name="terms"> <label>
</label> <input type="checkbox" name="terms">
</div> </label>
</label> </div>
</div><!-- /.col --> </label>
<div class="col-xs-6"> </div><!-- /.col -->
<div class="form-group"> <div class="col-xs-6">
<button type="button" class="btn btn-block btn-flat" data-toggle="modal" data-target="#termsModal">{{ trans('adminlte_lang::message.terms') }}</button> <div class="form-group">
</div> <button type="button" class="btn btn-block btn-flat" data-toggle="modal" data-target="#termsModal">{{ trans('adminlte_lang::message.terms') }}</button>
</div><!-- /.col -->
<div class="col-xs-4 col-xs-push-1">
<button type="submit" class="btn btn-primary btn-block btn-flat">{{ trans('adminlte_lang::message.register') }}</button>
</div><!-- /.col -->
</div>
</form>
</div><!-- /.form-box -->
</div>
</div> </div>
</div><!-- /.col -->
<div class="col-xs-4 col-xs-push-1">
<button type="submit" class="btn btn-success btn-block btn-flat">{{ trans('adminlte_lang::message.register') }}</button>
</div><!-- /.col -->
</div> </div>
</div> </form>
</div> </div><!-- /.form-box -->
@endsection </div>
\ No newline at end of file </div>
</div>
@endsection
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
<div class="col-md-12 col-md-offset-0"> <div class="col-md-12 col-md-offset-0">
<div class="panel panel-default"> <div class="panel panel-default">
<div id="app"> <div id="app">
@if (count($errors) > 0) @if (count($errors) > 0)
<div class="alert alert-danger"> <div class="alert alert-danger">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br> <strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
......
@extends('adminlte::layouts.app') @extends('adminlte::layouts.app')
@section('htmlheader_title') @section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }} {{ trans('adminlte_lang::message.home') }}
@endsection @endsection
@section('main-content') @section('main-content')
<div class="container-fluid spark-screen"> <div class="box box-warning">
<div class="row"> <div class="box-header with-border">
<div class="col-md-10 col-md-offset-1"> <h3 class="box-title"> Tambah Pemilik Homestay </h3>
<div class="panel panel-default"> </div>
<div id="app"> <div class="box-body">
<div id="app">
@if (count($errors) > 0) @if (count($errors) > 0)
<div class="alert alert-danger"> <div class="alert alert-danger">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br> <strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
<ul> <ul>
@foreach ($errors->all() as $error) @foreach ($errors->all() as $error)
<li>{{ $error }}</li> <li>{{ $error }}</li>
@endforeach @endforeach
</ul> </ul>
</div> </div>
@endif @endif
<br> <br>
<div class="col-md-4 col-sm-6 col-xs-12"> <div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box bg-info"> <div class="info-box bg-info">
<span class="info-box-icon bg-yellow"><i class="ion ion-ios-people-outline"></i></span> <span class="info-box-icon bg-yellow"><i class="ion ion-ios-people-outline"></i></span>
<div class="info-box-content">
<span class="info-box-text">List Pengajuan</span>
<span class="info-box-number">{{$count}}</span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<br>
<table class="table table-striped">
<tr>
<th>Pengaju</th>
<th>Nama Homestay</th>
<th>Jumlah Kamar</th>
<th colspan="2">Acction</th>
</tr>
@foreach($data as $a)
<tr>
<td>{{$a->nama}}</td>
<td>{{$a->namaHomestay}}</td>
<td>{{$a->jumlahKamar}}</td>
@if($a->status==1)
<td>Di Terima</td>
@elseif($a->status==2)
<td>Ditolak</td>
@elseif($a->status==0)
<td>
<form action="{{url('listPengajuanHomestay/'.$a->id)}}" method="post">
{{csrf_field()}}
<input type="hidden" name="_method" value="PUT">
<button type="submit" class="btn btn-info"><i class="glyphicon glyphicon-apple"> Terima</i></button>
</form>
<td>
<form action="{{url('listPengajuanHomestay/'.$a->id)}}" method="post">
{{csrf_field()}}
<input type="hidden" name="_method" value="PUT">
<button type="submit" class="btn btn-danger"><i class="glyphicon glyphicon-trash"> Tolak</i></button>
</form>
</td>
@endif
</tr>
@endforeach
</table>
</div> <div class="info-box-content">
</div> <span class="info-box-text">List Pengajuan</span>
<span class="info-box-number">{{$count}}</span>
</div> </div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div> </div>
</div> <br>
@endsection <table class="table table-striped">
<tr>
<th>Pengaju</th>
<th>Nama Homestay</th>
<th>Jumlah Kamar</th>
<th colspan="2">Acction</th>
</tr>
@foreach($data as $a)
<tr>
<td>{{$a->nama}}</td>
<td>{{$a->namaHomestay}}</td>
<td>{{$a->jumlahKamar}}</td>
@if($a->status==1)
<td>Di Terima</td>
@elseif($a->status==2)
<td>Ditolak</td>
@elseif($a->status==0)
<td>
<form action="{{url('listPengajuanHomestay/'.$a->id)}}" method="post">
{{csrf_field()}}
<input type="hidden" name="_method" value="PUT">
<button type="submit" class="btn btn-info"><i class="glyphicon glyphicon-apple"> Terima</i></button>
</form>
<td>
<form action="{{url('listPengajuanHomestay/'.$a->id)}}" method="post">
{{csrf_field()}}
<input type="hidden" name="_method" value="PUT">
<button type="submit" class="btn btn-danger"><i class="glyphicon glyphicon-trash"> Tolak</i></button>
</form>
</td>
@endif
</tr>
@endforeach
</table>
</div>
</div>
</div>
@endsection
@extends('adminlte::layouts.app') @extends('adminlte::layouts.app')
@section('htmlheader_title') @section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }} {{ trans('adminlte_lang::message.home') }}
@endsection @endsection
@section('main-content') @section('main-content')
<div class="container-fluid spark-screen">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div id="app">
@if (count($errors) > 0) <div class="box box-primary">
<div class="alert alert-danger"> <div class="box-header with-border">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br> <h3 class="box-title"> LIST PENGAJUAN </h3>
<ul> @if (count($errors) > 0)
@foreach ($errors->all() as $error) <div class="alert alert-danger">
<li>{{ $error }}</li> <strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
@endforeach <ul>
</ul> @foreach ($errors->all() as $error)
</div> <li>{{ $error }}</li>
@endif @endforeach
<br> </ul>
<div class="col-md-4 col-sm-6 col-xs-12"> </div>
<div class="info-box bg-info"> @endif
<span class="info-box-icon bg-yellow"><i class="ion ion-ios-people-outline"></i></span>
<div class="info-box-content"> </div>
<span class="info-box-text">List Pengajuan</span> <div class="box-body">
<span class="info-box-number">{{$count}}</span> <br>
</div> <div class="col-md-4 col-sm-6 col-xs-12">
<!-- /.info-box-content --> <div class="info-box bg-yellow">
</div> <span class="info-box-icon bg-yellow"><i class="ion ion-ios-people-outline"></i></span>
<!-- /.info-box --> <div class="info-box-content">
</div> <span class="info-box-text">List Pengajuan</span>
<br> <span class="info-box-number">{{$count}}</span>
</div>
<table class="table table-striped"> <!-- /.info-box-content -->
<tr>
<th>Pengaju</th>
<th>Nama Request Fasilitas</th>
<th>Deskripsi</th>
<th>Jumlah</th>
<th>Gambar</th>
<th colspan="2">Acction</th>
</tr>
@foreach($data as $a)
<tr>
<td>{{$a->nama}}</td>
<td>{{$a->namaRequestFasilitas}}</td>
<td>{{$a->deskripsi}}</td>
<td>{{$a->jumlah}}</td>
<td>@if($a->gambar==null)
<img alt="Gambar Tidak Ada" class="img-circle img-responsive">
@else
<img alt="User Pic" src="img/{{$data->gambar}}" class="img-circle img-responsive">
@endif
</td>
@if($a->status==1)
<td>Di Terima</td>
@elseif($a->status==2)
<td>Ditolak</td>
@elseif($a->status==0)
<td>
<form action="{{url('requestFasilitas/'.$a->id)}}" method="post">
{{csrf_field()}}
<input type="hidden" name="_method" value="PUT">
<button type="submit" class="btn btn-info"><i class="glyphicon glyphicon-apple"> Terima</i></button>
</form>
<td>
<form action="{{url('requestFasilitass/'.$a->id)}}" method="post">
{{csrf_field()}}
<input type="hidden" name="_method" value="PUT">
<button type="submit" class="btn btn-danger"><i class="glyphicon glyphicon-trash"> Tolak</i></button>
</form>
</td>
@endif
</tr>
@endforeach
</table>
</div>
</div>
</div>
</div> </div>
<!-- /.info-box -->
</div>
<br>
<table class="table table-striped">
<tr>
<th>Pengaju</th>
<th>Nama Request Fasilitas</th>
<th>Deskripsi</th>
<th>Jumlah</th>
<th>Gambar</th>
<th colspan="2">Acction</th>
</tr>
@foreach($data as $a)
<tr>
<td>{{$a->nama}}</td>
<td>{{$a->namaRequestFasilitas}}</td>
<td>{{$a->deskripsi}}</td>
<td>{{$a->jumlah}}</td>
<td>@if($a->gambar==null)
<img alt="Gambar Tidak Ada" class="img-circle img-responsive">
@else
<img alt="User Pic" src="img/{{$data->gambar}}" class="img-circle img-responsive">
@endif
</td>
@if($a->status==1)
<td>Di Terima</td>
@elseif($a->status==2)
<td>Ditolak</td>
@elseif($a->status==0)
<td>
<form action="{{url('requestFasilitas/'.$a->id)}}" method="post">
{{csrf_field()}}
<input type="hidden" name="_method" value="PUT">
<button type="submit" class="btn btn-info"><i class="glyphicon glyphicon-apple"> Terima</i></button>
</form>
<td>
<form action="{{url('requestFasilitass/'.$a->id)}}" method="post">
{{csrf_field()}}
<input type="hidden" name="_method" value="PUT">
<button type="submit" class="btn btn-danger"><i class="glyphicon glyphicon-trash"> Tolak</i></button>
</form>
</td>
@endif
</tr>
@endforeach
</table>
</div>
</div> </div>
@endsection
@endsection
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
@endsection @endsection
@section('main-content') @section('main-content')
<div class="container-fluid spark-screen"> <div class="box-header with-border">
<div class="row"> <div class="box box-primary">
<div class="col-md-10 col-md-offset-1"> <div class="box-header with-border">
<div class="panel panel-default"> <h3 clas="box-title"> Fasilitas </h3>
<div class="panel-body">
@if(Session::has('alert-success')) @if(Session::has('alert-success'))
<div class="alert alert-success"> <div class="alert alert-success">
{{ Session::get('alert-success') }} {{ Session::get('alert-success') }}
...@@ -25,13 +24,13 @@ ...@@ -25,13 +24,13 @@
</ul> </ul>
</div> </div>
@endif @endif
</div>
<div class="box-body">
<form action="" method="post" enctype="multipart/form-data"> <form action="" method="post" enctype="multipart/form-data">
<input type="hidden" name="_method" value="PUT"> <input type="hidden" name="_method" value="PUT">
<!-- {{csrf_field()}} --> <!-- {{csrf_field()}} -->
<!-- <label>Nama</label> <!-- <label>Nama</label>
<input type="text" name="nama" value="" id="nama" class="form-control"> --> <input type="text" name="nama" value="" id="nama" class="form-control"> -->
<label>Fasilitas</label>
<textarea name="fasilitas" value="" id="fasilitas" class="form-control" style="height:200px;"></textarea> <textarea name="fasilitas" value="" id="fasilitas" class="form-control" style="height:200px;"></textarea>
<label>Foto</label> <label>Foto</label>
...@@ -40,10 +39,12 @@ ...@@ -40,10 +39,12 @@
<input type="submit" class="btn btn-primary" value="simpan"> <input type="submit" class="btn btn-primary" value="simpan">
</div> </div>
</form> </form>
</div>
<div class="box-footer">
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
@endsection @endsection
...@@ -2,8 +2,11 @@ ...@@ -2,8 +2,11 @@
<footer class="main-footer"> <footer class="main-footer">
<!-- To the right --> <!-- To the right -->
<div class="pull-right hidden-xs"> <div class="pull-right hidden-xs">
<a href="https://github.com/acacha/adminlte-laravel"></a><b>admin-lte-laravel</b></a>. {{ trans('adminlte_lang::message.descriptionpackage') }} <!-- <a href="https://github.com/acacha/adminlte-laravel"></a><b>admin-lte-laravel</b></a>. {{ trans('adminlte_lang::message.descriptionpackage') }} -->
<a href="https://github.com/acacha/adminlte-laravel"></a><b>admin-lte-laravel</b></a>
</div> </div>
<!-- Default to the left --> <!-- Default to the left -->
<strong>Copyright &copy; 2015 <a href="http://acacha.org">Acacha.org</a>.</strong> {{ trans('adminlte_lang::message.createdby') }} <a href="http://acacha.org/sergitur">Sergi Tur Badenas</a>. {{ trans('adminlte_lang::message.seecode') }} <a href="https://github.com/acacha/adminlte-laravel">Github</a> <!-- <strong>Copyright &copy; 2015 <a href="http://acacha.org">Acacha.org</a>.</strong> {{ trans('adminlte_lang::message.createdby') }} <a href="http://acacha.org/sergitur">Sergi Tur Badenas</a>. {{ trans('adminlte_lang::message.seecode') }} <a href="https://github.com/acacha/adminlte-laravel">Github</a> -->
</footer>
\ No newline at end of file <strong>Copyright &copy; 2015 <a href="http://acacha.org">Acacha.org</a>.</strong> All rights reserved.
</footer>
...@@ -47,6 +47,11 @@ Route::group(['middleware' => 'auth'], function () { ...@@ -47,6 +47,11 @@ Route::group(['middleware' => 'auth'], function () {
}); });
Route::get('adminlte', function(){
return view('welcome');
});
Route::get('EditRoom', function(){ Route::get('EditRoom', function(){
return view('adminlte::layouts.owner.EditRoom'); return view('adminlte::layouts.owner.EditRoom');
}); });
......
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