mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
Laravel Vapor - New UI for admin to download reports
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
@section('inner_content')
|
||||
<div class="row d-none" :class="[{'d-flex': $store.getters.isAdmin}]" v-if="$store.getters.isAdmin">
|
||||
|
||||
<!-- Group 1: Packaging Related Downloads -->
|
||||
<!-- Group 1: Packaging Downloads -->
|
||||
<div class="col-12">
|
||||
<h4>Packaging Downloads</h4>
|
||||
<div class="row">
|
||||
@@ -10,7 +10,7 @@
|
||||
<div class="card mb-3">
|
||||
<div class="card-body d-flex justify-content-between align-items-center">
|
||||
<span>packing-list-on-hold.xls</span>
|
||||
<open-link-in-new-tab-component custom-class="btn btn-default" :url="route('packaging_list.on_hold.export')" :is-url-protected="true">
|
||||
<open-link-in-new-tab-component custom-class="btn btn-primary" :url="route('packaging_list.on_hold.export')" :is-url-protected="true">
|
||||
<i class="fa fa-download"></i> Download
|
||||
</open-link-in-new-tab-component>
|
||||
</div>
|
||||
@@ -20,7 +20,7 @@
|
||||
<div class="card mb-3">
|
||||
<div class="card-body d-flex justify-content-between align-items-center">
|
||||
<span>aging_report.xls</span>
|
||||
<open-link-in-new-tab-component custom-class="btn btn-default" :url="route('aging-listing.export')">
|
||||
<open-link-in-new-tab-component custom-class="btn btn-primary" :url="route('aging-listing.export')">
|
||||
<i class="fa fa-download"></i> Download
|
||||
</open-link-in-new-tab-component>
|
||||
</div>
|
||||
@@ -32,8 +32,11 @@
|
||||
<div class="col-md-6">
|
||||
<div class="card mb-3">
|
||||
<div class="card-body d-flex justify-content-between align-items-center">
|
||||
<span>arrived-parcel.xlsx (last 12 months)</span>
|
||||
<open-link-in-new-tab-component custom-class="btn btn-default" :url="route('packing_list.arrived_parcel.export')">
|
||||
<div>
|
||||
<span>arrived-parcel.xlsx</span>
|
||||
<p class="text-muted mb-0">(last 12 months)</p>
|
||||
</div>
|
||||
<open-link-in-new-tab-component custom-class="btn btn-primary" :url="route('packing_list.arrived_parcel.export')">
|
||||
<i class="fa fa-download"></i> Download
|
||||
</open-link-in-new-tab-component>
|
||||
</div>
|
||||
@@ -42,8 +45,11 @@
|
||||
<div class="col-md-6">
|
||||
<div class="card mb-3">
|
||||
<div class="card-body d-flex justify-content-between align-items-center">
|
||||
<span>parcel-summary.xls (last 3 months)</span>
|
||||
<open-link-in-new-tab-component custom-class="btn btn-default" :url="route('packing_list.arrived_parcel.parcel-summary')">
|
||||
<div>
|
||||
<span>parcel-summary.xls</span>
|
||||
<p class="text-muted mb-0">(last 3 months)</p>
|
||||
</div>
|
||||
<open-link-in-new-tab-component custom-class="btn btn-primary" :url="route('packing_list.arrived_parcel.parcel-summary')">
|
||||
<i class="fa fa-download"></i> Download
|
||||
</open-link-in-new-tab-component>
|
||||
</div>
|
||||
@@ -56,7 +62,57 @@
|
||||
<div class="card mb-3">
|
||||
<div class="card-body d-flex justify-content-between align-items-center">
|
||||
<span>guangzhou2-to-johor-summary.xls</span>
|
||||
<open-link-in-new-tab-component custom-class="btn btn-default" :url="route('packing_list.arrived_parcel.guangZhou2ToJohor')">
|
||||
<open-link-in-new-tab-component custom-class="btn btn-primary" :url="route('packing_list.arrived_parcel.guangZhou2ToJohor')">
|
||||
<i class="fa fa-download"></i> Download
|
||||
</open-link-in-new-tab-component>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="card mb-3">
|
||||
<div class="card-body">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<div>
|
||||
<span class="mb-1">packing-list-delivery.xls</span>
|
||||
<p class="text-muted mb-0">Pending arrangement delivery list</p>
|
||||
</div>
|
||||
<open-link-in-new-tab-component custom-class="btn btn-primary" :url="route('packaging_list.pending_arrangement.export')">
|
||||
<i class="fa fa-download"></i> Download
|
||||
</open-link-in-new-tab-component>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="card mb-3">
|
||||
<div class="card-body">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<div>
|
||||
<span class="mb-1">parcel-postcodes.xls</span>
|
||||
</div>
|
||||
<open-link-in-new-tab-component custom-class="btn btn-primary" :url="route('parcel.postcode.export')">
|
||||
<i class="fa fa-download"></i> Download
|
||||
</open-link-in-new-tab-component>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Group 2: Order Downloads -->
|
||||
<div class="col-12">
|
||||
<h4>Order Downloads</h4>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="card mb-3">
|
||||
<div class="card-body d-flex justify-content-between align-items-center">
|
||||
<span>customer-latest-order-date.csv</span>
|
||||
<open-link-in-new-tab-component custom-class="btn btn-primary" :url="route('customer.latest.order.date.export')" :is-url-protected="true">
|
||||
<i class="fa fa-download"></i> Download
|
||||
</open-link-in-new-tab-component>
|
||||
</div>
|
||||
@@ -65,7 +121,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Group 2: Feedback Related Downloads -->
|
||||
<!-- Group 3: Feedback Downloads -->
|
||||
<div class="col-12">
|
||||
<h4>Feedback Downloads</h4>
|
||||
<div class="row">
|
||||
@@ -73,7 +129,7 @@
|
||||
<div class="card mb-3">
|
||||
<div class="card-body d-flex justify-content-between align-items-center">
|
||||
<span>Feedback</span>
|
||||
<open-link-in-new-tab-component custom-class="btn btn-default" :url="route('feedback.export')" :is-url-protected="true">
|
||||
<open-link-in-new-tab-component custom-class="btn btn-primary" :url="route('feedback.export')" :is-url-protected="true">
|
||||
<i class="fa fa-download"></i> Download
|
||||
</open-link-in-new-tab-component>
|
||||
</div>
|
||||
|
||||
+2
-2
@@ -430,11 +430,11 @@ Route::get('/warehouse/{id}/show', function ($id) {
|
||||
// $id = $connection->invitee->company->id;
|
||||
return view('pages.templates.warehouseDetails', ['id' => $id]);
|
||||
})->name('warehouse.show');
|
||||
Route::get('/export/customer-latest-order-date/f614e339d7058904a831aad742e24d55', 'Exports\ExportCustomersToExcelController@export');
|
||||
Route::get('/export/customer-latest-order-date/f614e339d7058904a831aad742e24d55', 'Exports\ExportCustomersToExcelController@export')->name('customer.latest.order.date.export');
|
||||
Route::get('/export/packing-list/{id}', 'Exports\ExportContainerPackingListController@export')->name('container.packaging_list.export');
|
||||
Route::get('/export/pending-arrangement-delivery-list', 'Exports\ExportPendingArrangementPackingListV2Controller@export')->name('packaging_list.pending_arrangement.export');
|
||||
// Route::get('/export/on-hold-packing-list', 'Exports\ExportPendingArrangementPackingListV2Controller@onHold')->name('packaging_list.on_hold.export');
|
||||
Route::get('/export/parcel-postcode', 'Exports\ExportParcelPostcodesController@export');
|
||||
Route::get('/export/parcel-postcode', 'Exports\ExportParcelPostcodesController@export')->name('parcel.postcode.export');
|
||||
Route::get('/export/{year}/customer-total-order', 'Exports\ExportCustomersToExcelController@totalOrders');
|
||||
|
||||
//Converted to protected route starts (20240925)
|
||||
|
||||
Reference in New Issue
Block a user