672367 lte gte fxx3
This commit is contained in:
parent
a0f7553974
commit
768d47327f
|
|
@ -56,11 +56,7 @@ public function setup()
|
|||
protected function setupListOperation()
|
||||
{
|
||||
CRUD::addColumn(['name'=>'account_type', 'type'=>'text','label'=> trans('app.account.filter.type')]);
|
||||
CRUD::addColumn( [
|
||||
'label' => trans('app.application.name'),
|
||||
'type' => 'text',
|
||||
'name' => 'type_and_name',
|
||||
]);
|
||||
|
||||
CRUD::addColumn([
|
||||
'name' => 'profile',
|
||||
'label' => trans('app.account.name'),
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@ protected function setupListOperation()
|
|||
'model' => "App\Models\Account",
|
||||
'attribute' => 'type_and_name',
|
||||
],
|
||||
['name'=>'country_id', 'type'=>'select','label'=> trans('app.account.country'), 'entity' => 'country' ,'model' => 'App\Model\Country','attribute' => 'name'],
|
||||
[
|
||||
'label' => trans('app.application.leg_number'),
|
||||
'type' => 'select',
|
||||
|
|
|
|||
|
|
@ -60,6 +60,10 @@ public function ticket():HasOne{
|
|||
return $this->hasOne(Ticket::class);
|
||||
}
|
||||
|
||||
public function country(){
|
||||
return $this->hasOneThrough(Country::class,Account::class);
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| SCOPES
|
||||
|
|
|
|||
Loading…
Reference in New Issue