672367 lte gte fxx3

This commit is contained in:
merdan 2022-11-29 14:19:45 +05:00
parent a0f7553974
commit 768d47327f
3 changed files with 6 additions and 5 deletions

View File

@ -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'),

View File

@ -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',

View File

@ -60,6 +60,10 @@ public function ticket():HasOne{
return $this->hasOne(Ticket::class);
}
public function country(){
return $this->hasOneThrough(Country::class,Account::class);
}
/*
|--------------------------------------------------------------------------
| SCOPES