update the booking controller

This commit is contained in:
Mohd Arief
2018-06-29 12:09:01 +08:00
parent 651f762237
commit 6c5dd60654
2 changed files with 3 additions and 1 deletions
@@ -130,7 +130,6 @@ class BookingController extends Controller
public function show($id)
{
$booking = Booking::where('user_id',Auth::user()->id)->where('id', $id)->first();
// just added to try
$user_bankslip = $booking->userBankSlip()->first();
if ($user_bankslip){
+3
View File
@@ -276,6 +276,9 @@
</el-table>
</div>
</el-row>
<div align="right">
<el-pagination background layout="prev, pager, next" :total="30"></el-pagination>
</div>
<!-- Booking Table-end -->
</el-main>