Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA21617D4TI04
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rinto
PA21617D4TI04
Commits
446fec34
Commit
446fec34
authored
7 years ago
by
Rinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit today
parent
ffc5d339
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
532 additions
and
51 deletions
+532
-51
KlienController.php
app/Http/Controllers/KlienController.php
+1
-0
KsupirController.php
app/Http/Controllers/KsupirController.php
+52
-2
detail.blade.php
...es/views/vendor/adminlte/k_klien/history/detail.blade.php
+11
-0
detail.blade.php
resources/views/vendor/adminlte/k_supir/bus/detail.blade.php
+1
-3
detail.blade.php
...es/views/vendor/adminlte/k_supir/history/detail.blade.php
+97
-37
detail2.blade.php
...s/views/vendor/adminlte/k_supir/history/detail2.blade.php
+136
-0
index.blade.php
...ces/views/vendor/adminlte/k_supir/history/index.blade.php
+12
-2
detail.blade.php
.../views/vendor/adminlte/k_supir/pemesanan/detail.blade.php
+49
-7
refuse.blade.php
.../views/vendor/adminlte/k_supir/pemesanan/refuse.blade.php
+159
-0
detail.blade.php
...rces/views/vendor/adminlte/klien/riwayat/detail.blade.php
+11
-0
web.php
routes/web.php
+3
-0
No files found.
app/Http/Controllers/KlienController.php
View file @
446fec34
...
...
@@ -126,6 +126,7 @@ class KlienController extends Controller
$bus
=
Bus
::
all
();
return
view
(
'adminlte::klien.pesan.pilih'
,
compact
(
'bus'
));
}
public
function
pakaibus
(
$id
)
{
$bus
=
Bus
::
find
(
$id
);
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/KsupirController.php
View file @
446fec34
...
...
@@ -10,6 +10,7 @@ use App\Http\Requests;
use
App\Bus
;
use
App\Users
;
use
App\Supir
;
use
App\Tolak
;
use
App\Jam_Kerja
;
use
App\Pemesanan
;
use
App\Batal
;
...
...
@@ -118,8 +119,10 @@ class KsupirController extends Controller
public
function
detailpemesanans
(
$id
)
{
$bus
=
Bus
::
all
();
$supir
=
Supir
::
all
();
$pemesanan
=
Pemesanan
::
find
(
$id
);
return
view
(
'adminlte::k_supir.pemesanan.detail'
,
compact
(
'pemesanan'
));
return
view
(
'adminlte::k_supir.pemesanan.detail'
,
compact
(
'pemesanan'
,
'bus'
,
'supir'
));
}
public
function
konfirmasi
(
Request
$request
,
$id
)
...
...
@@ -155,10 +158,51 @@ class KsupirController extends Controller
return
redirect
(
'k_supir/history'
)
->
with
(
'message'
,
'Berhasil Melakukan Konfirmasi'
);
}
public
function
refuse
(
$id
)
{
$pemesanan
=
Pemesanan
::
find
(
$id
);
return
view
(
'adminlte::k_supir.pemesanan.refuse'
,
compact
(
'pemesanan'
));
}
public
function
refusing
(
Request
$request
,
$id
)
{
$this
->
validate
(
$request
,
[
'tujuan'
=>
'required'
,
'jumlah'
=>
'required'
,
'alasan'
=>
'required'
,
'berangkat'
=>
'required'
,
'kembali'
=>
'required'
,
'plat_bus'
=>
'required'
,
'name'
=>
'required'
,
'status'
=>
'required'
,
'alasan_tolak'
=>
'required'
,
'saran'
=>
'required'
,
]);
$tolak
=
new
Tolak
();
$tolak
->
tujuan
=
$request
[
'tujuan'
];
$tolak
->
jumlah
=
$request
[
'jumlah'
];
$tolak
->
alasan
=
$request
[
'alasan'
];
$tolak
->
berangkat
=
$request
[
'berangkat'
];
$tolak
->
kembali
=
$request
[
'kembali'
];
$tolak
->
plat_bus
=
$request
[
'plat_bus'
];
$tolak
->
name
=
$request
[
'name'
];
$tolak
->
status
=
$request
[
'status'
];
$tolak
->
alasan_tolak
=
$request
[
'alasan_tolak'
];
$tolak
->
saran
=
$request
[
'saran'
];
$tolak
->
save
();
$pemesanan
=
Pemesanan
::
find
(
$id
);
$pemesanan
->
delete
();
return
redirect
(
'k_supir/pemesanan'
)
->
with
(
'message'
,
'Penolakan Berhasil Dilakukan'
);
}
public
function
historys
()
{
$riwayat
=
Konfirmasi
::
all
();
return
view
(
'adminlte::k_supir.history.index'
,
compact
(
'riwayat'
));
$riwayatzy
=
Tolak
::
all
();
return
view
(
'adminlte::k_supir.history.index'
,
compact
(
'riwayat'
,
'riwayatzy'
));
}
public
function
detailriwayats
(
$id
)
...
...
@@ -167,6 +211,12 @@ class KsupirController extends Controller
return
view
(
'adminlte::k_supir.history.detail'
,
compact
(
'riwayat'
));
}
public
function
detailriwayatsz
(
$id
)
{
$riwayatz
=
Tolak
::
find
(
$id
);
return
view
(
'adminlte::k_supir.history.detail2'
,
compact
(
'riwayatz'
));
}
public
function
jadwal
()
{
$jadwal
=
Jadwal
::
all
();
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/k_klien/history/detail.blade.php
View file @
446fec34
...
...
@@ -102,6 +102,17 @@
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'nama_supir'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Supir Bertugas</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
nama_supir
" value="
{{
$riwayat
->
nama_supir
}}
" readonly>
@if (
$errors->has
('nama_supir'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('nama_supir') }}</strong>
</span>
@endif
</div>
</div>
</form>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/k_supir/bus/detail.blade.php
View file @
446fec34
...
...
@@ -68,9 +68,7 @@
<label class="
col
-
md
-
4
control
-
label
">Deskripsi</label>
<textarea class="
form
-
control
" placeholder="
Berikan
deskripsi
disini
" rows="
3
" name="
deskripsi
" readonly="">{{
$bus->deskripsi
}}</textarea>
</div>
<div class="
form
-
group
has
-
feedback
">
<a href="
{{
url
(
'bus/ubahbus'
,
$bus
->
id
)}}
" class="
btn
btn
-
success
"><i class="
fa
fa
-
edit
"></i> Ubah Data</a>
</div>
</form><br>
</div>
<!-- /.box-footer -->
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/k_supir/history/detail.blade.php
View file @
446fec34
...
...
@@ -6,49 +6,109 @@
@
section
(
'contentheader_title'
)
<
ol
class
="
breadcrumb
"><li><a href="
/
"><i class="
fa
fa
-
home
"></i> Home</a></li>
<li class="
active
"><i class="
fa
fa
-
reorder
"></i> Riwayat</li>
<li class="
active
"><i class="
fa
fa
-
send
"></i> Detail Riwayat
</li>
<li class="
active
"><i class="
fa
fa
-
file
-
archive
-
o
"></i> Riwayat</li>
<li class="
active
"><i class="
fa
fa
-
eye
"></i> Detail Pesanan
</li>
</ol><!-- breadcrumbs -->
@endsection
@section('main-content')
<div class="
container
-
fluid
spark
-
screen
">
<div class="
box
-
header
with
-
border
">
<h3 class="
box
-
title
">Detil Riwayat Pemesanan</h3>
</div>
<!-- /.box-header -->
<div class="
box
-
body
">
<strong><i class="
fa
fa
-
key
"></i> ID</strong>
<p class="
text
-
muted
">{{
$riwayat->id
}}</p>
<strong><i class="
fa
fa
-
user
"></i> Nama Pemesan</strong>
<p class="
text
-
muted
">{{
$riwayat->name
}}</p>
<strong><i class="
fa
fa
-
hand
-
o
-
right
"></i> Tujuan </strong>
<p class="
text
-
muted
">{{
$riwayat->tujuan
}}</p>
<strong><i class="
fa
fa
-
bus
margin
-
r
-
5
"></i> Plat Bus</strong>
<p class="
text
-
muted
">{{
$riwayat->plat_bus
}}</p>
<strong><i class="
fa
fa
-
commenting
"></i> Alasan </strong>
<p class="
text
-
muted
">{{
$riwayat->alasan
}}</p>
<strong><i class="
fa
fa
-
hourglass
"></i> Tanggal Berangkat </strong>
<p class="
text
-
muted
">{{
$riwayat->berangkat
}}</p>
<strong><i class="
fa
fa
-
hourglass
-
o
"></i> Tanggal Kembali </strong>
<p class="
text
-
muted
">{{
$riwayat->kembali
}}</p>
<div class="
container
">
<div class="
col
-
md
-
8
col
-
md
-
offset
-
2
">
<div class="
panel
-
body
">
<div class="
col
-
md
-
9
">
<div class="
box
box
-
widget
">
<div class="
box
-
header
with
-
border
">
<div class="
user
-
block
">
<span class="
username
">{{
$riwayat->name
}}</span>
</div>
<!-- /.user-block -->
</div>
<div class="
login
-
box
-
body
">
<div class="
user
-
block
">
<span class="
username
">{{
$riwayat->status
}}</span>
</div>
<!-- /.user-block -->
</div>
<!-- /.box-footer -->
<div class="
box
-
footer
">
<form class="
form
-
horizontal
" action="
{{
url
(
''
)
}}
" method="
POST
">
{!! csrf_field() !!}
<div class="
form
-
group
{{
$errors
->
has
(
'tujuan'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Tujuan</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
tujuan
" value="
{{
$riwayat
->
tujuan
}}
" readonly>
@if (
$errors->has
('tujuan'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'jumlah'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Jumlah Penumpang</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
tujuan
" value="
{{
$riwayat
->
tujuan
}}
" readonly>
@if (
$errors->has
('tujuan'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'alasan'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Keperluan Pemesanan</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
alasan
" value="
{{
$riwayat
->
alasan
}}
" readonly>
@if (
$errors->has
('alasan'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('alasan') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'berangkat'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Tanggal Berangkat</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
berangkat
" value="
{{
$riwayat
->
berangkat
}}
" readonly>
@if (
$errors->has
('berangkat'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('berangkat') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'kembali'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Tanggal Kembali</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
kembali
" value="
{{
$riwayat
->
kembali
}}
" readonly>
@if (
$errors->has
('kembali'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('kembali') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'plat_bus'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Plat Kendaraan</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
plat_bus
" value="
{{
$riwayat
->
plat_bus
}}
" readonly>
@if (
$errors->has
('plat_bus'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('plat_bus') }}</strong>
</span>
@endif
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.box-body -->
</div>
@endsection
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/k_supir/history/detail2.blade.php
0 → 100644
View file @
446fec34
@
extends
(
'adminlte::layouts.app'
)
@
section
(
'htmlheader_title'
)
Detail
@
endsection
@
section
(
'contentheader_title'
)
<
ol
class
="
breadcrumb
"><li><a href="
/
"><i class="
fa
fa
-
home
"></i> Home</a></li>
<li class="
active
"><i class="
fa
fa
-
file
-
archive
-
o
"></i> Riwayat</li>
<li class="
active
"><i class="
fa
fa
-
eye
"></i> Detail Pesanan</li>
</ol><!-- breadcrumbs -->
@endsection
@section('main-content')
<div class="
container
-
fluid
spark
-
screen
">
<div class="
container
">
<div class="
col
-
md
-
8
col
-
md
-
offset
-
2
">
<div class="
panel
-
body
">
<div class="
col
-
md
-
9
">
<div class="
box
box
-
widget
">
<div class="
box
-
header
with
-
border
">
<div class="
user
-
block
">
<span class="
username
">{{
$riwayatz->name
}}</span>
</div>
<!-- /.user-block -->
</div>
<div class="
login
-
box
-
body
">
<div class="
user
-
block
">
<span class="
username
">{{
$riwayatz->status
}} Oleh Koordinator Supir</span>
</div>
<!-- /.user-block -->
</div>
<!-- /.box-footer -->
<div class="
box
-
footer
">
<form class="
form
-
horizontal
" action="
{{
url
(
''
)
}}
" method="
POST
">
{!! csrf_field() !!}
<div class="
form
-
group
{{
$errors
->
has
(
'tujuan'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Tujuan</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
tujuan
" value="
{{
$riwayatz
->
tujuan
}}
" readonly>
@if (
$errors->has
('tujuan'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'jumlah'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Jumlah Penumpang</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
tujuan
" value="
{{
$riwayatz
->
jumlah
}}
" readonly>
@if (
$errors->has
('tujuan'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'alasan'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Keperluan Pemesanan</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
alasan
" value="
{{
$riwayatz
->
alasan
}}
" readonly>
@if (
$errors->has
('alasan'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('alasan') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'berangkat'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Tanggal Berangkat</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
berangkat
" value="
{{
$riwayatz
->
berangkat
}}
" readonly>
@if (
$errors->has
('berangkat'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('berangkat') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'kembali'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Tanggal Kembali</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
kembali
" value="
{{
$riwayatz
->
kembali
}}
" readonly>
@if (
$errors->has
('kembali'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('kembali') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'plat_bus'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Plat Kendaraan</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
plat_bus
" value="
{{
$riwayatz
->
plat_bus
}}
" readonly>
@if (
$errors->has
('plat_bus'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('plat_bus') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'alasan_tolak'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Alasan Penolakan</label>
<div class="
col
-
md
-
6
">
<textarea class="
form
-
control
" readonly>{{
$riwayatz->alasan_tolak
}}</textarea>
@if (
$errors->has
('alasan_tolak'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('alasan_tolak') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'saran'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Saran yang Diberi</label>
<div class="
col
-
md
-
6
">
<textarea class="
form
-
control
" readonly>{{
$riwayatz->saran
}}</textarea>
@if (
$errors->has
('saran'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('saran') }}</strong>
</span>
@endif
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/k_supir/history/index.blade.php
View file @
446fec34
...
...
@@ -19,7 +19,6 @@
<th><i class="
fa
fa
-
user
"></i> Nama Pemesan</th>
<th><i class="
fa
fa
-
hand
-
pointer
-
o
"></i> Tujuan</th>
<th><i class="
fa
fa
-
child
"></i> Nama Supir</th>
<th><i class="
fa
fa
-
rub
"></i> Plat Bus</th>
<th><i class="
fa
fa
-
tag
"></i>Status</th>
<th><i class="
fa
fa
-
hand
-
rock
-
o
"></i> Aksi</th>
</tr>
...
...
@@ -31,7 +30,6 @@
<td>
{
{$riwaya->name}
}
</td>
<td>
{
{$riwaya->tujuan}
}
</td>
<td>
{
{$riwaya->nama_supir}
}
</td>
<td>
{
{$riwaya->plat_bus}
}
</td>
<td>
{
{$riwaya->status}
}
</td>
<td colspan="
2
">
<a href="
{{
url
(
'/k_supir/history/detailss'
,
$riwaya
->
id
)}}
" class="
btn
btn
-
danger
"><i class="
fa
fa
-
eye
"></i> Detail</a>
...
...
@@ -39,6 +37,18 @@
</tr>
</form>
@endforeach
@foreach(
$riwayatzy
as
$riwayatz
)
<tr>
<td>
{
{$riwayatz->name}
}
</td>
<td>
{
{$riwayatz->tujuan}
}
</td>
<td>Tidak Ada</td>
<td>
{
{$riwayatz->status}
}
</td>
<td colspan="
2
">
<a href="
{{
url
(
'/k_supir/history/detailsz'
,
$riwayatz
->
id
)}}
" class="
btn
btn
-
danger
"><i class="
fa
fa
-
eye
"></i> Detail</a>
</td>
</tr>
</form>
@endforeach
</tbody>
</table>
</div>
...
...
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/k_supir/pemesanan/detail.blade.php
View file @
446fec34
...
...
@@ -25,9 +25,50 @@
</div>
@endif
<div class="
col
-
md
-
8
col
-
md
-
offset
-
2
">
<div class="
panel
-
body
">
<div class="
col
-
md
-
9
">
<div class="
row
">
<div class="
col
-
md
-
4
">
<!-- Widget: user widget style 1 -->
<div class="
box
box
-
widget
widget
-
user
-
2
">
<!-- Add the bg color to the header using any of the bg-* classes -->
<div class="
widget
-
user
-
header
bg
-
blue
">
<h5>List Plat Kendaraan IT DEL</h5>
</div>
<div class="
box
-
footer
no
-
padding
">
<ul class="
nav
nav
-
stacked
">
@foreach(
$bus
as
$bu
)
<li><a href="
#">{{$bu->plat_bus}}
<
span
class
="
pull
-
right
badge
bg
-
blue
">
<img style="
height
:
20
px
;
width
:
20
px
;
" class="
img
-
circle
" src="
{{
asset
(
'image/'
.
$bu
->
gambar
)}}
"/>
</span>
</a>
</li>
@endforeach
</ul>
</div>
</div>
<!-- /.widget-user -->
<div class="
box
box
-
widget
widget
-
user
-
2
">
<!-- Add the bg color to the header using any of the bg-* classes -->
<div class="
widget
-
user
-
header
bg
-
green
">
<h5>List Nama Supir IT DEL</h5>
</div>
<div class="
box
-
footer
no
-
padding
">
<ul class="
nav
nav
-
stacked
">
@foreach(
$supir
as
$supi
)
<li><a href="
#">{{$supi->nama_supir}}
<
span
class
="
pull
-
right
badge
bg
-
blue
">
<img style="
height
:
20
px
;
width
:
20
px
;
" class="
img
-
circle
" src="
{{
asset
(
'image/'
.
$supi
->
image
)}}
"/>
</span>
</a>
</li>
@endforeach
</ul>
</div>
</div>
</div>
<div class="
col
-
md
-
6
">
<div class="
box
box
-
widget
">
<div class="
box
-
header
with
-
border
">
<div class="
user
-
block
">
...
...
@@ -102,7 +143,7 @@
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'plat_bus'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Plat Kendara
a
n</label>
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Plat Kendaran</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
plat_bus
" value="
{{
$pemesanan
->
plat_bus
}}
" required>
@if (
$errors->has
('plat_bus'))
...
...
@@ -128,17 +169,18 @@
<div class="
form
-
group
">
<div class="
col
-
md
-
6
col
-
md
-
offset
-
4
">
<button type="
submit
" class="
btn
btn
-
primary
">
Konfirmasi
<i class="
fa
fa
-
check
-
circle
"></i>
Konfirmasi
</button>
<a href="
{{
url
(
'k_supir/pemesanan/refuse'
,
$pemesanan
->
id
)}}
" class="
btn
btn
-
danger
">
<i class="
fa
fa
-
close
"></i> Tolak</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/k_supir/pemesanan/refuse.blade.php
0 → 100644
View file @
446fec34
@
extends
(
'adminlte::layouts.app'
)
@
section
(
'htmlheader_title'
)
Tolak
Pemesanan
@
endsection
@
section
(
'contentheader_title'
)
<
ol
class
="
breadcrumb
"><li><a href="
/
"><i class="
fa
fa
-
home
"></i> Home</a></li>
<li class="
active
"><i class="
fa
fa
-
close
"></i> Tolak Pemesanan</li>
</ol><!-- breadcrumbs -->
@endsection
@section('main-content')
<div class="
container
-
fluid
spark
-
screen
">
<div class="
container
">
@if(session()->has('message'))
<div class="
alert
alert
-
info
">
{
{session()->get('message')}
}
</div>
@endif
@if(!empty(
$success
))
<div class="
alert
alert
-
success
">
{
{$success}
}
</div>
@endif
<div class="
col
-
md
-
8
col
-
md
-
offset
-
2
">
<div class="
panel
-
body
">
<form class="
form
-
horizontal
" action="
{{
url
(
'refusing'
,
$pemesanan
->
id
)
}}
" method="
POST
">
{!! csrf_field() !!}
<div class="
form
-
group
{{
$errors
->
has
(
'name'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Nama Pemesan</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
name
" value="
{{
$pemesanan
->
name
}}
" readonly>
@if (
$errors->has
('name'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('name') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'tujuan'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Tujuan</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
tujuan
" value="
{{
$pemesanan
->
tujuan
}}
" readonly>
@if (
$errors->has
('tujuan'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('tujuan') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'jumlah'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Jumlah</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
jumlah
" value="
{{
$pemesanan
->
jumlah
}}
" readonly>
@if (
$errors->has
('jumlah'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('jumlah') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'alasan'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Keperluan Keberangkatan</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
alasan
" value="
{{
$pemesanan
->
alasan
}}
" readonly>
@if (
$errors->has
('alasan'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('alasan') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'berangkat'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Tanggal Berangkat</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
berangkat
" value="
{{
$pemesanan
->
berangkat
}}
" readonly>
@if (
$errors->has
('berangkat'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('berangkat') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'kembali'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Tanggal Kembali</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
kembali
" value="
{{
$pemesanan
->
kembali
}}
" readonly>
@if (
$errors->has
('kembali'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('kembali') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'plat_bus'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Plat Kendaraan</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
plat_bus
" value="
{{
$pemesanan
->
plat_bus
}}
" readonly>
@if (
$errors->has
('plat_bus'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('plat_bus') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'status'
)
?
' has-error'
:
''
}}
">
<div class="
col
-
md
-
6
">
<input type="
hidden
" class="
form
-
control
" name="
status
" value="
Ditolak
">
@if (
$errors->has
('status'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('status') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'alasan_tolak'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Alasan Penolakan</label>
<div class="
col
-
md
-
6
">
<textarea class="
form
-
control
" name="
alasan_tolak
" value="
{{
$pemesanan
->
alasan_tolak
}}
" required></textarea>
@if (
$errors->has
('alasan_tolak'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('alasan_tolak') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'saran'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
4
control
-
label
">Saran Anda </label>
<div class="
col
-
md
-
6
">
<textarea class="
form
-
control
" name="
saran
" value="
{{
$pemesanan
->
saran
}}
" required></textarea>
@if (
$errors->has
('saran'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('saran') }}</strong>
</span>
@endif
</div>
</div>
<div class="
form
-
group
">
<div class="
col
-
md
-
6
col
-
md
-
offset
-
4
">
<button type="
submit
" class="
btn
btn
-
primary
">
Kirim Penolakan
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
@endsection
This diff is collapsed.
Click to expand it.
resources/views/vendor/adminlte/klien/riwayat/detail.blade.php
View file @
446fec34
...
...
@@ -102,6 +102,17 @@
@endif
</div>
</div>
<div class="
form
-
group
{{
$errors
->
has
(
'nama_supir'
)
?
' has-error'
:
''
}}
">
<label for="
title
" class="
col
-
md
-
5
control
-
label
">Supir Bertugas</label>
<div class="
col
-
md
-
6
">
<input type="
text
" class="
form
-
control
" name="
nama_supir
" value="
{{
$riwayatpesan
->
nama_supir
}}
" readonly>
@if (
$errors->has
('nama_supir'))
<span class="
help
-
block
">
<strong>{{
$errors->first
('nama_supir') }}</strong>
</span>
@endif
</div>
</div>
</form>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
446fec34
...
...
@@ -99,9 +99,12 @@ Route::group(['middleware' => ['web','auth','k_supir']], function () {
Route
::
get
(
'/k_supir/pemesanan'
,
'KsupirController@pemesanans'
);
Route
::
get
(
'/k_supir/pemesanan/detailpemesanan/{id}'
,
'KsupirController@detailpemesanans'
);
Route
::
post
(
'/k_supir/konfirmasi/{id}'
,
'KsupirController@konfirmasi'
);
Route
::
get
(
'/k_supir/pemesanan/refuse/{id}'
,
'KsupirController@refuse'
);
Route
::
post
(
'/refusing/{id}'
,
'KsupirController@refusing'
);
Route
::
get
(
'/k_supir/history'
,
'KsupirController@historys'
);
Route
::
get
(
'/k_supir/history/detailss/{id}'
,
'KsupirController@detailriwayats'
);
Route
::
get
(
'/k_supir/history/detailsz/{id}'
,
'KsupirController@detailriwayatsz'
);
});
...
...
This diff is collapsed.
Click to expand it.
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