A free open source IT asset/license management system
Added companies tab+table
snipea6cc5246e1ef
diff --git a/resources/views/blade/table/companies.blade.php b/resources/views/blade/table/companies.blade.phpnew file mode 100644index 0000000000..6174119fc1--- /dev/null+++ b/resources/views/blade/table/companies.blade.php@@ -0,0 +1,20 @@+@props([+ 'route' => route('api.companies.index'),+ 'name' => 'default',+ 'presenter' => \App\Presenters\CompanyPresenter::dataTableLayout(),+ 'fixed_right_number' => 1,+])++<!-- start companies tab pane -->+@can('view', \App\Models\Company::class)+ <x-table+ :$presenter+ :$fixed_right_number+ show_column_search="true"+ show_advanced_search="false"+ buttons="companyButtons"+ api_url="{{ $route }}"+ export_filename="export-{{ str_slug($name) }}-companies-{{ date('Y-m-d') }}"+ />+@endcan+<!-- end companies tab pane -->diff --git a/resources/views/blade/tabs/company-tab.blade.php b/resources/views/blade/tabs/company-tab.blade.phpnew file mode 100644index 0000000000..f49d904548--- /dev/null+++ b/resources/views/blade/tabs/company-tab.blade.php@@ -0,0 +1,15 @@+@props([+ 'count' => null,+ 'class' => false,+])++@can('view', \App\Models\Company::class)+ <x-tabs.nav-item+ :$class+ name="companies"+ icon_type="company"+ label="{{ trans('general.companies') }}"+ count="{{ $count }}"+ tooltip="{{ trans('general.companies') }}"+ />+@endcan