diff --git a/app/Models/Company/Company.php b/app/Models/Company/Company.php index d861b85da..5fc4b98cb 100644 --- a/app/Models/Company/Company.php +++ b/app/Models/Company/Company.php @@ -22,7 +22,7 @@ class Company extends Eloquent * * @var array */ - public $sortable = ['name', 'domain', 'email']; + public $sortable = ['name', 'domain', 'email', 'created_at']; public function accounts() { diff --git a/resources/views/companies/companies/index.blade.php b/resources/views/companies/companies/index.blade.php index e7e03ad9b..3a2116e13 100644 --- a/resources/views/companies/companies/index.blade.php +++ b/resources/views/companies/companies/index.blade.php @@ -32,9 +32,10 @@
@sortablelink('name', trans('general.name')) | +@sortablelink('name', trans('general.name')) | @sortablelink('domain', trans('companies.domain')) | @sortablelink('email', trans('general.email')) | +@sortablelink('created_at', trans('general.date')) | {{ trans('general.actions') }} | {{ $item->company_name }} | {{ $item->domain }} | {{ $item->company_email }} | +{{ Date::parse($item->created_at)->format($date_format) }} | {{ trans('general.change') }} {{ trans('general.edit') }} |
---|