mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
filter company list to only show importer and link the company to the customer profile
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
<div class="font-heading all-caps fs-11">{{this.item.bookings.length}}</div>
|
||||
</div>
|
||||
<div class="col-2 text-right pull-right">
|
||||
<button type="button" @click="viewCompany()" class="btn btn-xs btn-primary fs-11">View</button>
|
||||
<a :href="route('customer.profile', item.id)">
|
||||
<button type="button" class="btn btn-xs btn-primary fs-11">View</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<list-component key="2" :section="this.section" :endpoint="route('api.company.list')" :options="{per_page: 25,with_bookings:true}">
|
||||
<list-component key="2" :section="this.section" :endpoint="route('api.company.list')" :options="{'business_type': 2, with_bookings:true}">
|
||||
<template slot="list" slot-scope="{data}">
|
||||
<company-list-component :data="data"></company-list-component>
|
||||
</template>
|
||||
|
||||
+2
-2
@@ -34,9 +34,9 @@ Route::get('/settings', function () {
|
||||
return view('pages.settings');
|
||||
})->name('settings');
|
||||
|
||||
Route::get('/customers/{id}', function ($id) {
|
||||
Route::get('/customer/{id}', function ($id) {
|
||||
return view('pages.customers', ['id' => $id]);
|
||||
})->name('customers');
|
||||
})->name('customer.profile');
|
||||
|
||||
Route::get('/booking/complete', function () {
|
||||
return view('pages.booking_complete');
|
||||
|
||||
Reference in New Issue
Block a user