-
-
-
{{ $order->id }}
@@ -92,7 +89,7 @@
@endif
- {{ $order->total_price }}
+ IDR {{ $order->total_price }}
@if($order->order_status == 'PENDING')
@@ -121,16 +118,45 @@
-
Previous
-
-
Next
+ @if($page != 1)
+
+ @endif
+
+ @php $total_page = ceil($total_data / $take) @endphp
+ @for ($i = 1; $i <= $total_page; $i++)
+ @if($i == $page)
+
{{ $i }}
+ @else
+
+ @endif
+ @endfor
+
+ @if($page != $total_page)
+
+ @endif
+
+ @else
+
+ @endif
+
-
+
diff --git a/resources/views/dashboard/update-vehicle-form.blade.php b/resources/views/dashboard/update-vehicle-form.blade.php
new file mode 100644
index 0000000..586f9ca
--- /dev/null
+++ b/resources/views/dashboard/update-vehicle-form.blade.php
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Upload New Image
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/dashboard/vehicles.blade.php b/resources/views/dashboard/vehicles.blade.php
index fa266a2..f73ca92 100644
--- a/resources/views/dashboard/vehicles.blade.php
+++ b/resources/views/dashboard/vehicles.blade.php
@@ -14,91 +14,131 @@
-
-
Showing result 1-10 Result
+
Showing {{ count($vehicles) }} results from {{ $total_data }} records
Item per page
-
- @for ($i = 10; $i <= 50; $i+=10)
- {{ $i }}
- @endfor
-
+
-
-
-
-
+
+
+
+
+
+
+ @if($page != 1)
+
+ @endif
+
+ @php $total_page = ceil($total_data / $take) @endphp
+ @for ($i = 1; $i <= $total_page; $i++)
+ @if($i == $page)
+
{{ $i }}
+ @else
+
+ @endif
+ @endfor
+
+ @if($page != $total_page)
+
+ @endif
+
+
diff --git a/resources/views/help.blade.php b/resources/views/help.blade.php
new file mode 100644
index 0000000..bfcbb2b
--- /dev/null
+++ b/resources/views/help.blade.php
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+ We're currently operating in Malang, East Java. You can find Rent.ly office near Malang Station, Jl. Trunojoyo No.3, Kiduldalem, Kec. Klojen, Malang city.
+
+
+
+
+
+
+
+ Enter your delivery and return dates and times, choose your vehicle, complete a short verification and payment process, sit back and we deliver and pick up your vehicle to your door! You can return the car at any address in our service area.
+
+
+
+
+
+
+
+ Regarding to our rules, the amount of fuel at the end of use / at the time of return must be the same as the fuel at the beginning of use.
+ But actually you may return the vehicle at any fuel level. If it is below the fuel level at the start of the trip, we will refuel it for you and charge you at local market rates! If you received a vehicle lower than full, we only charge up to that level.
+
+
+
+
+
+
+
+ We accept all major bank transfers and e-wallet transfers.
+ We do not accept cash or any debit card payments for the booking cost.
+
+
+
+
+
+ @auth
+
+ @endauth
+ @guest
+
+ @endguest
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/rules.blade.php b/resources/views/rules.blade.php
new file mode 100644
index 0000000..4403e80
--- /dev/null
+++ b/resources/views/rules.blade.php
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+ 1
+ Must have SIM C (for motorbike rental) or SIM A (for car rental) which is still valid and can show it when handing over the vehicle.
+
+
+ 2
+ Must comply with all applicable vehicle rental procedures.
+
+
+ 3
+ Must be willing to be photographed with the rental vehicle, for data collection purposes.
+
+
+ 4
+ Delivery and pick-up service hours are 06.00 - 21.00 WIB. Outside of service hours you can subject to postage of Rp. 50.000,-.
+
+
+ 5
+ The amount of fuel at the end of use / at the time of return must be the same as the fuel at the beginning of use.
+
+
+ 6
+ It is not allowed to rent a motorbike to be taken out of the Malang area, inform Rent.ly and if you violate the provisions, you will be subject to a fine of Rp. 150.000,-
+
+
+ 7
+ All crimes will be reported to the police and will be dealt with strictly according to applicable law.
+
+
+ 8
+ Overtime is valid only for the first 1 hour and is charged Rp. 10,000,-. If it is more than 1 hour, the rate will be charged for the next day.
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/user-profile.blade.php b/resources/views/user-profile.blade.php
index df81cd0..13399a7 100644
--- a/resources/views/user-profile.blade.php
+++ b/resources/views/user-profile.blade.php
@@ -22,7 +22,7 @@
-
+
@@ -34,5 +34,10 @@
@csrf
+
+
\ No newline at end of file
diff --git a/routes/channels.php b/routes/channels.php
index 5d451e1..b72161f 100644
--- a/routes/channels.php
+++ b/routes/channels.php
@@ -16,3 +16,8 @@
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});
+
+
+Broadcast::channel('rent.ly-development', function ($user) {
+ return Auth::check();
+ });
diff --git a/routes/web.php b/routes/web.php
index 84c33c9..9edcf3b 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -5,6 +5,7 @@
use App\Http\Controllers\RentController;
use App\Http\Controllers\UserController;
use App\Http\Controllers\AdminController;
+use App\Http\Controllers\ChatsController;
use Illuminate\Support\Facades\Storage;
use Illuminate\Http\Request;
@@ -64,12 +65,15 @@
Route::get('/me/order/{id}/va', [RentController::class, 'getVirtualAccount'])->name('get-virtual-account');
Route::get('/me/order/{id}/confirm', [RentController::class, 'getConfirmPayment'])->name('confirm-payment');
Route::get('/me/order/{id}/check', [RentController::class, 'checkPayment'])->name('check-payment');
+ Route::get('/message', [ChatsController::class, 'fetchMessage'])->name('fetch-message');
+ Route::post('/message', [ChatsController::class, 'sendMessage'])->name('send-message');
});
Route::middleware(['auth', 'admin.authenticated'])-> group(function () {
Route::get('/dashboard/customers', [AdminController::class, 'getCustomersDashboard'])->name('customers-dahboard');
Route::get('/dashboard/orders', [AdminController::class, 'getOrdersDashboard'])->name('orders-dashboard');
Route::get('/order-details/{id}', [AdminController::class, 'getOrderDetails'])->name('order-details');
+ Route::get('/customer-details/{id}', [AdminController::class, 'getCustomerDetails'])->name('customer-details');
Route::post('/dashboard/orders/acceptance/{id}', [AdminController::class, 'acceptOrder'])->name('accept-order');
Route::post('/dashboard/orders/rejection/{id}', [AdminController::class, 'rejectOrder'])->name('reject-order');
Route::get('/dashboard/vehicles/car', [AdminController::class, 'getVehiclesDashboardCar'])->name('vehicles-dashboard-car');
@@ -77,7 +81,14 @@
Route::post('/dashboard/vehicles/car/done', [AdminController::class, 'doneVehicle'])->name('done-vehicle');
Route::get('/dashboard/vehicles/car/new', [AdminController::class, 'getNewCarForm'])->name('add-car');
Route::get('/dashboard/vehicles/motor/new', [AdminController::class, 'getNewMotorForm'])->name('add-motor');
+ Route::get('/dashboard/vehicles/motor/{id}', [AdminController::class, 'updateMotorForm'])->name('update-motor');
+ Route::get('/dashboard/vehicles/car/{id}', [AdminController::class, 'updateCarForm'])->name('update-car');
Route::post('/dashboard/vehicles/{type}/new', [AdminController::class, 'addVehicle'])->name('add-vehicle')->where('type', '\b(car|motor)\b');
+ Route::post('/dashboard/vehicles/{type}/delete', [AdminController::class, 'deleteVehicle'])->name('delete-vehicle')->where('type', '\b(car|motor)\b');
+ Route::get('/dashboard/chats', [AdminController::class, 'getChatsDashboard'])->name('chats-dashboard')->name('chat-dashboard');
+ Route::get('/dashboard/chats/get/{id}', [ChatsController::class, 'fetchAdminMessage'])->name('fetch-admin-message');
+ Route::post('/dashboard/vehicles/{id}/update', [AdminController::class, 'updateVehicle'])->name('update-vehicle');
+ Route::post('/dashboard/vehicles/{id}/update/image', [AdminController::class, 'updateVehicleImage'])->name('update-vehicle-image');
});
Route::get('/test-up', function() {
diff --git a/webpack.mix.js b/webpack.mix.js
index 987216e..00dab86 100644
--- a/webpack.mix.js
+++ b/webpack.mix.js
@@ -11,7 +11,15 @@ const mix = require('laravel-mix');
|
*/
-mix.js('resources/js/app.js', 'public/js').js('resources/js/navbar_script.js', 'public/js').js('resources/js/dashboard_modal_script.js', 'public/js').postCss('resources/css/app.css', 'public/css', [
+mix.js('resources/js/app.js', 'public/js')
+ .js('resources/js/navbar_script.js', 'public/js')
+ .js('resources/js/orders_dashboard_script.js', 'public/js')
+ .js('resources/js/customers_dashboard_script.js', 'public/js')
+ .js('resources/js/vehicles_dashboard_script.js', 'public/js')
+ .js('resources/js/chat_script.js', 'public/js')
+ .js('resources/js/chats_dashboard_script.js', 'public/js')
+ .js('resources/js/update_vehicle_script.js', 'public/js')
+ .postCss('resources/css/app.css', 'public/css', [
require('postcss-import'),
require('tailwindcss'),
require('autoprefixer'),