diff --git a/app/Helpers/IconHelper.php b/app/Helpers/IconHelper.php
index 5f9ec8723d00..f46efa72663c 100644
--- a/app/Helpers/IconHelper.php
+++ b/app/Helpers/IconHelper.php
@@ -131,9 +131,12 @@ public static function icon($type) {
return 'fa-regular fa-clipboard';
case 'paperclip':
return 'fas fa-paperclip';
+ case 'contact-card':
+ return 'fa-regular fa-id-card';
case 'files':
return 'fa-regular fa-file';
case 'more-info':
+ case 'support':
return 'far fa-life-ring';
case 'calendar':
return 'fas fa-calendar';
@@ -144,7 +147,7 @@ public static function icon($type) {
case 'more-files':
return 'fa-solid fa-laptop-file';
case 'maintenances':
- return 'fas fa-wrench';
+ return 'fa-solid fa-screwdriver-wrench';
case 'seats':
return 'far fa-list-alt';
case 'globe-us':
@@ -203,6 +206,12 @@ public static function icon($type) {
return 'fa-solid fa-lightbulb';
case 'highlight':
return 'fa-solid fa-highlighter';
+ case 'manager':
+ return 'fa-solid fa-building-user';
+ case 'company':
+ return 'fa-regular fa-building';
+ case 'parent':
+ return 'fa-solid fa-building-flag';
}
}
}
diff --git a/app/Presenters/AccessoryPresenter.php b/app/Presenters/AccessoryPresenter.php
index 8257f9babcd0..57e03bb4241b 100644
--- a/app/Presenters/AccessoryPresenter.php
+++ b/app/Presenters/AccessoryPresenter.php
@@ -22,6 +22,13 @@ public static function dataTableLayout()
'title' => trans('general.id'),
'visible' => false,
'printIgnore' => true,
+ ], [
+ 'field' => 'name',
+ 'searchable' => true,
+ 'sortable' => true,
+ 'switchable' => false,
+ 'title' => trans('general.name'),
+ 'formatter' => 'accessoriesLinkFormatter',
], [
'field' => 'image',
'searchable' => false,
@@ -38,14 +45,7 @@ public static function dataTableLayout()
'title' => trans('admin/companies/table.title'),
'visible' => false,
'formatter' => 'companiesLinkObjFormatter',
- ], [
- 'field' => 'name',
- 'searchable' => true,
- 'sortable' => true,
- 'switchable' => false,
- 'title' => trans('general.name'),
- 'formatter' => 'accessoriesLinkFormatter',
- ], [
+ ], [
'field' => 'category',
'searchable' => true,
'sortable' => true,
@@ -172,6 +172,7 @@ public static function dataTableLayout()
'visible' => true,
'title' => trans('general.change'),
'formatter' => 'accessoriesInOutFormatter',
+ 'printIgnore' => true,
], [
'field' => 'available_actions',
'searchable' => false,
diff --git a/app/Presenters/ComponentPresenter.php b/app/Presenters/ComponentPresenter.php
index f29c473663fe..9a5e354c55af 100644
--- a/app/Presenters/ComponentPresenter.php
+++ b/app/Presenters/ComponentPresenter.php
@@ -21,6 +21,13 @@ public static function dataTableLayout()
'switchable' => true,
'title' => trans('general.id'),
'visible' => false,
+ ], [
+ 'field' => 'name',
+ 'searchable' => true,
+ 'sortable' => true,
+ 'title' => trans('general.name'),
+ 'visible' => true,
+ 'formatter' => 'componentsLinkFormatter',
],
[
'field' => 'company',
@@ -31,14 +38,7 @@ public static function dataTableLayout()
'visible' => false,
'formatter' => 'companiesLinkObjFormatter',
],
- [
- 'field' => 'name',
- 'searchable' => true,
- 'sortable' => true,
- 'title' => trans('general.name'),
- 'visible' => true,
- 'formatter' => 'componentsLinkFormatter',
- ], [
+ [
'field' => 'image',
'searchable' => false,
'sortable' => true,
diff --git a/app/Presenters/ConsumablePresenter.php b/app/Presenters/ConsumablePresenter.php
index 2b2eec5b2ee4..8c7cf1d0d9ca 100644
--- a/app/Presenters/ConsumablePresenter.php
+++ b/app/Presenters/ConsumablePresenter.php
@@ -21,17 +21,7 @@ public static function dataTableLayout()
'switchable' => true,
'title' => trans('general.id'),
'visible' => false,
- ],
- [
- 'field' => 'company',
- 'searchable' => true,
- 'sortable' => true,
- 'switchable' => true,
- 'title' => trans('general.company'),
- 'visible' => false,
- 'formatter' => 'companiesLinkObjFormatter',
- ],
- [
+ ], [
'field' => 'name',
'searchable' => true,
'sortable' => true,
@@ -39,7 +29,16 @@ public static function dataTableLayout()
'title' => trans('general.name'),
'visible' => true,
'formatter' => 'consumablesLinkFormatter',
+ ], [
+ 'field' => 'company',
+ 'searchable' => true,
+ 'sortable' => true,
+ 'switchable' => true,
+ 'title' => trans('general.company'),
+ 'visible' => false,
+ 'formatter' => 'companiesLinkObjFormatter',
],
+
[
'field' => 'image',
'searchable' => false,
@@ -172,6 +171,7 @@ public static function dataTableLayout()
'visible' => true,
'title' => trans('general.change'),
'formatter' => 'consumablesInOutFormatter',
+ 'printIgnore' => true,
], [
'field' => 'actions',
'searchable' => false,
diff --git a/app/Presenters/DepartmentPresenter.php b/app/Presenters/DepartmentPresenter.php
index cdce1d967d5e..ea3d051d4f74 100644
--- a/app/Presenters/DepartmentPresenter.php
+++ b/app/Presenters/DepartmentPresenter.php
@@ -22,17 +22,7 @@ public static function dataTableLayout()
'switchable' => true,
'title' => trans('general.id'),
'visible' => false,
- ],
- [
- 'field' => 'company',
- 'searchable' => true,
- 'sortable' => true,
- 'switchable' => true,
- 'title' => trans('general.company'),
- 'visible' => false,
- 'formatter' => 'companiesLinkObjFormatter'
- ],
- [
+ ], [
'field' => 'name',
'searchable' => true,
'sortable' => true,
@@ -40,6 +30,14 @@ public static function dataTableLayout()
'title' => trans('general.name'),
'visible' => true,
'formatter' => 'departmentsLinkFormatter',
+ ], [
+ 'field' => 'company',
+ 'searchable' => true,
+ 'sortable' => true,
+ 'switchable' => true,
+ 'title' => trans('general.company'),
+ 'visible' => false,
+ 'formatter' => 'companiesLinkObjFormatter'
], [
'field' => 'image',
'searchable' => false,
@@ -112,6 +110,7 @@ public static function dataTableLayout()
'title' => trans('table.actions'),
'visible' => true,
'formatter' => 'departmentsActionsFormatter',
+ 'printIgnore' => true,
],
];
diff --git a/app/Presenters/GroupPresenter.php b/app/Presenters/GroupPresenter.php
new file mode 100644
index 000000000000..cf2a8915480c
--- /dev/null
+++ b/app/Presenters/GroupPresenter.php
@@ -0,0 +1,78 @@
+ 'id',
+ 'searchable' => false,
+ 'sortable' => true,
+ 'switchable' => true,
+ 'title' => trans('general.id'),
+ 'visible' => false,
+ ],
+ [
+ 'field' => 'name',
+ 'searchable' => true,
+ 'sortable' => true,
+ 'switchable' => false,
+ 'title' => trans('general.name'),
+ 'visible' => true,
+ 'formatter' => 'groupsAdminLinkFormatter',
+ ],
+ [
+ 'field' => 'users_count',
+ 'searchable' => false,
+ 'sortable' => true,
+ 'switchable' => true,
+ 'title' => trans('admin/groups/table.users'),
+ 'visible' => true,
+ 'class' => 'css-users',
+ ], [
+ 'field' => 'notes',
+ 'searchable' => true,
+ 'sortable' => true,
+ 'visible' => true,
+ 'title' => trans('general.notes'),
+ ], [
+ 'field' => 'created_by',
+ 'searchable' => true,
+ 'sortable' => true,
+ 'switchable' => true,
+ 'title' => trans('general.created_by'),
+ 'visible' => true,
+ 'formatter' => 'usersLinkObjFormatter',
+ ], [
+ 'field' => 'updated_at',
+ 'searchable' => true,
+ 'sortable' => true,
+ 'switchable' => true,
+ 'title' => trans('general.updated_at'),
+ 'visible' => true,
+ 'formatter' => 'dateDisplayFormatter',
+ ], [
+ 'field' => 'actions',
+ 'searchable' => false,
+ 'sortable' => false,
+ 'switchable' => false,
+ 'title' => trans('table.actions'),
+ 'visible' => true,
+ 'formatter' => 'groupsActionsFormatter',
+ 'printIgnore' => true,
+ ],
+ ];
+
+ return json_encode($layout);
+ }
+
+}
diff --git a/app/Presenters/LicensePresenter.php b/app/Presenters/LicensePresenter.php
index 7fc1aa5682d6..87972c4e5a12 100644
--- a/app/Presenters/LicensePresenter.php
+++ b/app/Presenters/LicensePresenter.php
@@ -21,6 +21,13 @@ public static function dataTableLayout()
'switchable' => true,
'title' => trans('general.id'),
'visible' => false,
+ ], [
+ 'field' => 'name',
+ 'searchable' => true,
+ 'sortable' => true,
+ 'switchable' => false,
+ 'title' => trans('general.name'),
+ 'formatter' => 'licensesLinkFormatter',
], [
'field' => 'company',
'searchable' => true,
@@ -29,13 +36,6 @@ public static function dataTableLayout()
'title' => trans('admin/companies/table.title'),
'visible' => false,
'formatter' => 'companiesLinkObjFormatter',
- ], [
- 'field' => 'name',
- 'searchable' => true,
- 'sortable' => true,
- 'switchable' => false,
- 'title' => trans('general.name'),
- 'formatter' => 'licensesLinkFormatter',
], [
'field' => 'product_key',
'searchable' => true,
diff --git a/app/Presenters/LocationPresenter.php b/app/Presenters/LocationPresenter.php
index ab739e871bf3..460bdb81dfd3 100644
--- a/app/Presenters/LocationPresenter.php
+++ b/app/Presenters/LocationPresenter.php
@@ -333,6 +333,7 @@ public static function assignedAccessoriesDataTableLayout()
'switchable' => false,
'title' => trans('table.actions'),
'formatter' => 'accessoriesInOutFormatter',
+ 'printIgnore' => true,
],
];
diff --git a/app/Presenters/Presenter.php b/app/Presenters/Presenter.php
index 13bae66ecdf9..dc50f5406a89 100644
--- a/app/Presenters/Presenter.php
+++ b/app/Presenters/Presenter.php
@@ -21,6 +21,35 @@ public function __construct(SnipeModel $model)
$this->model = $model;
}
+ public function displayAddress() {
+ $address = '';
+ if ($this->model->address) {
+ $address .= e($this->model->address)."\n";
+ }
+
+ if ($this->model->address2) {
+ $address .= e($this->model->address2)."\n";
+ }
+
+ if ($this->model->city) {
+ $address .= e($this->model->city).', ';
+ }
+
+ if ($this->model->state) {
+ $address .= e($this->model->state).' ';
+ }
+
+ if ($this->model->zip) {
+ $address .= e($this->model->zip).' ';
+ }
+
+ if ($this->model->country) {
+ $address .= e($this->model->country).' ';
+ }
+
+ return $address;
+ }
+
// Convenience functions for datatables stuff
public function categoryUrl()
{
@@ -70,30 +99,7 @@ public function manufacturerUrl()
return '';
}
-// public function name()
-// {
-// return $this->model->name;
-// }
-//
-// public function display_name()
-// {
-// return $this->model->display_name;
-// }
-
-
-// protected function displayName(): Attribute
-// {
-// // This override should only kick in if the model has a display_name prope
-// if ($this->getRawOriginal('display_name')) {
-// return Attribute:: make (
-// get: fn(mixed $value) => 'Poop:'.$this->display_name
-// );
-// }
-//
-// return Attribute:: make(
-// get: fn(mixed $value) => 'Fart: '.$this->name,
-// );
-// }
+
public function __get($property)
{
@@ -108,4 +114,6 @@ public function __call($method, $args)
{
return $this->model->$method($args);
}
+
+
}
diff --git a/app/Presenters/SupplierPresenter.php b/app/Presenters/SupplierPresenter.php
index 9ac0fcc0fa76..dd9d87d733c4 100644
--- a/app/Presenters/SupplierPresenter.php
+++ b/app/Presenters/SupplierPresenter.php
@@ -3,7 +3,7 @@
namespace App\Presenters;
/**
- * Class LocationPresenter
+ * Class SupplierPresenter
*/
class SupplierPresenter extends Presenter
{
diff --git a/app/Presenters/UploadedFilesPresenter.php b/app/Presenters/UploadedFilesPresenter.php
index 83b528d38724..9a2d548cbcf9 100644
--- a/app/Presenters/UploadedFilesPresenter.php
+++ b/app/Presenters/UploadedFilesPresenter.php
@@ -92,6 +92,7 @@ public static function dataTableLayout()
'title' => trans('table.actions'),
'visible' => true,
'formatter' => 'deleteUploadFormatter',
+ 'printIgnore' => true,
],
];
diff --git a/app/Providers/BreadcrumbsServiceProvider.php b/app/Providers/BreadcrumbsServiceProvider.php
index bc6d61d96899..93c41612fe9e 100644
--- a/app/Providers/BreadcrumbsServiceProvider.php
+++ b/app/Providers/BreadcrumbsServiceProvider.php
@@ -458,7 +458,8 @@ public function boot()
Breadcrumbs::for('manufacturers.edit', fn (Trail $trail, Manufacturer $manufacturer) =>
$trail->parent('manufacturers.index', route('manufacturers.index'))
- ->push(trans('general.breadcrumb_button_actions.edit_item', ['name' => $manufacturer->name]), route('manufacturers.edit', $manufacturer))
+ ->push($manufacturer->name, route('manufacturers.show', $manufacturer))
+ ->push(trans('general.update', ['name' => $manufacturer->name]), route('manufacturers.edit', $manufacturer))
);
diff --git a/resources/lang/en-US/general.php b/resources/lang/en-US/general.php
index ed6201355bb0..6c45d6bf2e4a 100644
--- a/resources/lang/en-US/general.php
+++ b/resources/lang/en-US/general.php
@@ -100,7 +100,9 @@
'created_at' => 'Created At',
'created_by' => 'Created By',
'record_created' => 'Record Created',
- 'updated_at' => 'Updated at',
+ 'updated_at' => 'Updated At',
+ 'updated_plain' => 'Updated',
+ 'created_plain' => 'Created',
'currency' => '$', // this is deprecated
'currency_text' => 'Currency', //
'current' => 'Current',
diff --git a/resources/views/accessories/index.blade.php b/resources/views/accessories/index.blade.php
index 1bc038662e18..5f6763382878 100755
--- a/resources/views/accessories/index.blade.php
+++ b/resources/views/accessories/index.blade.php
@@ -9,37 +9,25 @@
{{-- Page content --}}
@section('content')
-
-
-
+
+
+
+
+
+
+
@stop
+
@section('moar_scripts')
@include ('partials.bootstrap-table')
@stop
diff --git a/resources/views/blade/box/body.blade.php b/resources/views/blade/box/body.blade.php
deleted file mode 100644
index cc95fb01f365..000000000000
--- a/resources/views/blade/box/body.blade.php
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- {{ $slot }}
-
\ No newline at end of file
diff --git a/resources/views/blade/box/contact.blade.php b/resources/views/blade/box/contact.blade.php
new file mode 100644
index 000000000000..1972a164f359
--- /dev/null
+++ b/resources/views/blade/box/contact.blade.php
@@ -0,0 +1,160 @@
+@props([
+ 'contact' => null,
+ 'img_path' => null,
+])
+
+
+
+
+ @if (($contact->image) && ($img_path))
+
+
+
+ @endif
+
+
+ {{ $contact->display_name }}
+
+
+ @if ($contact->present()->displayAddress)
+ {!! nl2br($contact->present()->displayAddress) !!}
+
+ @endif
+
+
+ @if (isset($before_list))
+ {{ $before_list }}
+ @endif
+
+
+
+ {{ $slot }}
+
+ @if ($contact->company)
+
+ {{ $contact->company->display_name }}
+
+ @endif
+
+
+
+ {{ $contact->contact }}
+
+
+ @if ($contact->manager)
+
+ {{ $contact->manager->display_name }}
+
+ @endif
+
+ @if ($contact->parent)
+
+ {{ $contact->parent->display_name }}
+
+ @endif
+
+
+
+ {{ $contact->email }}
+
+
+
+ @if ($contact->phone)
+
+
+ {{ $contact->phone }}
+
+
+ @endif
+
+ @if ($contact->fax)
+
+
+ {{ $contact->fax }}
+
+
+ @endif
+
+
+
+ {{ $contact->url }}
+
+
+
+
+
+ {{ $contact->support_url }}
+
+
+
+ @if ($contact->notes)
+
+
+ {!! nl2br(Helper::parseEscapedMarkedownInline($contact->notes)) !!}
+
+ @endif
+
+ @if (($contact->present()->displayAddress) && (config('services.google.maps_api_key')))
+
+
+
+
 }}&size=500x300&maptype=roadmap&key={{ config('services.google.maps_api_key') }})
+
+
+ @endif
+
+ @if ((($contact->address!='') && ($contact->city!='')) || ($contact->state!='') || ($contact->country!=''))
+
+
+ {!! trans('admin/locations/message.open_map', ['map_provider_icon' => '']) !!}
+
+
+
+
+ {!! trans('admin/locations/message.open_map', ['map_provider_icon' => '']) !!}
+
+
+
+ @endif
+
+ @if ($contact->created_by)
+
+
+
+ {{ trans('general.created_by') }}
+ {{ $contact->adminuser->display_name }}
+
+
+ @endif
+
+
+ @if ($contact->created_at)
+
+
+
+ {{ trans('general.created_plain') }}
+ {{ $contact->created_at }}
+
+
+ @endif
+
+ @if ($contact->updated_at)
+
+
+
+ {{ trans('general.updated_plain') }}
+ {{ $contact->updated_at }}
+
+
+ @endif
+
+
+
+ @if (isset($after_list))
+ {{ $after_list }}
+ @endif
+
+
+
+
+
diff --git a/resources/views/blade/box/header.blade.php b/resources/views/blade/box/header.blade.php
deleted file mode 100644
index 0c54adb5fbd1..000000000000
--- a/resources/views/blade/box/header.blade.php
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
\ No newline at end of file
diff --git a/resources/views/blade/box/index.blade.php b/resources/views/blade/box/index.blade.php
index 81527e6c2a69..745772f73a9b 100644
--- a/resources/views/blade/box/index.blade.php
+++ b/resources/views/blade/box/index.blade.php
@@ -3,23 +3,32 @@
'header' => false,
'footer' => false,
])
+@aware(['name', 'route'])
+
@if ($header)
-
- {{ $header }}
-
+
@endif
+
+ @if (isset($bulkactions))
+
+ {{ $bulkactions }}
+
+ @endif
+
{{ $slot }}
- @if ($footer)
-
- {{ $footer }}
-
+ @if ($route)
+
@endif
\ No newline at end of file
diff --git a/resources/views/blade/form/index.blade.php b/resources/views/blade/form/index.blade.php
new file mode 100644
index 000000000000..4ff9b739e79d
--- /dev/null
+++ b/resources/views/blade/form/index.blade.php
@@ -0,0 +1,18 @@
+@props([
+ 'route' => null,
+ 'item' => null,
+ 'class' => 'form-horizontal',
+])
+@aware(['name', 'footer'])
+
+
\ No newline at end of file
diff --git a/resources/views/blade/info-element/email.blade.php b/resources/views/blade/info-element/email.blade.php
new file mode 100644
index 000000000000..958d4e7077cc
--- /dev/null
+++ b/resources/views/blade/info-element/email.blade.php
@@ -0,0 +1,3 @@
+@if (!$slot->isEmpty())
+ {{ $slot }}
+@endif
\ No newline at end of file
diff --git a/resources/views/blade/info-element/index.blade.php b/resources/views/blade/info-element/index.blade.php
new file mode 100644
index 000000000000..ec9e27adedb3
--- /dev/null
+++ b/resources/views/blade/info-element/index.blade.php
@@ -0,0 +1,15 @@
+@props([
+ 'icon' => null,
+ 'icon_type' => null,
+])
+
+@if (!$slot->isEmpty())
+ merge(['class' => 'list-group-item']) }}>
+ @if ($icon_type)
+
+ @elseif ($icon)
+
+ @endif
+ {{ $slot }}
+
+@endif
\ No newline at end of file
diff --git a/resources/views/blade/info-element/phone.blade.php b/resources/views/blade/info-element/phone.blade.php
new file mode 100644
index 000000000000..9decf4755035
--- /dev/null
+++ b/resources/views/blade/info-element/phone.blade.php
@@ -0,0 +1,3 @@
+@if (!$slot->isEmpty())
+ {{ $slot }}
+@endif
diff --git a/resources/views/blade/info-element/url.blade.php b/resources/views/blade/info-element/url.blade.php
new file mode 100644
index 000000000000..1df76894bdc6
--- /dev/null
+++ b/resources/views/blade/info-element/url.blade.php
@@ -0,0 +1,3 @@
+@if (!$slot->isEmpty())
+ {{ $slot }}
+@endif
diff --git a/resources/views/components/tables/bulk-actions.blade.php b/resources/views/blade/table/bulk-actions.blade.php
similarity index 73%
rename from resources/views/components/tables/bulk-actions.blade.php
rename to resources/views/blade/table/bulk-actions.blade.php
index 807cd76882e5..5b7a82d5fd89 100644
--- a/resources/views/components/tables/bulk-actions.blade.php
+++ b/resources/views/blade/table/bulk-actions.blade.php
@@ -1,19 +1,16 @@
@props([
- 'id_divname',
- 'id_formname',
- 'id_button',
'action_route',
- 'action_method',
'model_name' => 'asset',
])
+@aware(['name'])
-
+
\ No newline at end of file
diff --git a/resources/views/blade/bulk-menus/assets.blade.php b/resources/views/blade/table/bulk-assets.blade.php
similarity index 100%
rename from resources/views/blade/bulk-menus/assets.blade.php
rename to resources/views/blade/table/bulk-assets.blade.php
diff --git a/resources/views/blade/table/bulk-models.blade.php b/resources/views/blade/table/bulk-models.blade.php
new file mode 100644
index 000000000000..4b4e52fe3934
--- /dev/null
+++ b/resources/views/blade/table/bulk-models.blade.php
@@ -0,0 +1,31 @@
+@aware(['name'])
+
+
+
+
+
+
diff --git a/resources/views/blade/table/bulk-users.blade.php b/resources/views/blade/table/bulk-users.blade.php
new file mode 100644
index 000000000000..6d7f668b0bc3
--- /dev/null
+++ b/resources/views/blade/table/bulk-users.blade.php
@@ -0,0 +1,38 @@
+@aware(['name'])
+
+
diff --git a/resources/views/blade/table.blade.php b/resources/views/blade/table/index.blade.php
similarity index 58%
rename from resources/views/blade/table.blade.php
rename to resources/views/blade/table/index.blade.php
index c6ecea6496f9..58a549f03b84 100644
--- a/resources/views/blade/table.blade.php
+++ b/resources/views/blade/table/index.blade.php
@@ -5,6 +5,12 @@
'api_url' => null,
'show_column_search' => false,
'show_advanced_search' => false,
+ 'fixed_number' => false,
+ 'fixed_right_number' => false,
+ 'show_footer' => false,
+ 'sort_order' => 'asc',
+ 'sort_field' => 'name',
+
])
@aware(['name'])
@@ -14,25 +20,42 @@
class="table table-striped snipe-table"
data-cookie-id-table="{{ $name }}ListingTable"
data-id-table="{{ $name }}ListingTable"
- data-sort-order="asc"
+ data-sort-order="{{ $sort_order }}"
data-toolbar="#{{ Illuminate\Support\Str::camel($name) }}Toolbar"
data-bulk-button-id="#{{ Illuminate\Support\Str::camel($name) }}Button"
data-bulk-form-id="#{{ Illuminate\Support\Str::camel($name) }}Form"
id="{{ $name }}ListingTable"
data-show-columns-search="{{ $show_column_search }}"
data-show-advanced-search="{{ $show_advanced_search }}"
+
@if ($presenter)
data-columns="{{ $presenter }}"
@endif
+
+ @if ($fixed_number)
+ data-fixed-number="{{ $fixed_number }}"
+ @endif
+
+ @if ($fixed_right_number)
+ data-fixed-right-number="{{ $fixed_right_number }}"
+ @endif
+
@if ($buttons)
data-buttons="{{ $buttons }}"
@endif
+
+ @if ($show_footer)
+ data-show-footer="{{ $show_footer }}"
+ data-footer-style="footerStyle"
+ @endif
+
@if ($api_url)
data-side-pagination="server"
- data-url="{{ $api_url }}"
+ data-url="{!! $api_url !!}"
@endif
+
data-export-options='{
- "fileName": "{{ $export_filename }}",
- "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
-}'>
+ "fileName": "{{ $export_filename }}",
+ "ignoreColumn": ["actions","available_actions", "image","change","checkbox","checkincheckout","icon"]
+ }'>
\ No newline at end of file
diff --git a/resources/views/blade/tabs/nav-item.blade.php b/resources/views/blade/tabs/nav-item.blade.php
index 803bc25d3024..24d2f67e3876 100644
--- a/resources/views/blade/tabs/nav-item.blade.php
+++ b/resources/views/blade/tabs/nav-item.blade.php
@@ -1,14 +1,15 @@
@props([
- 'name' => false,
- 'label' => false,
+ 'name' => null,
+ 'label' => null,
'count' => 0,
- 'icon' => false,
- 'icon_style' => false,
- 'tooltip' => false,
+ 'icon' => null,
+ 'icon_style' => null,
+ 'tooltip' => null,
])
merge(['class' => '']) }}>
-
+
+
@if ($icon)
@@ -28,8 +29,6 @@
{{ $label }}
@endif
-
-
@if ($count > 0)
{{ number_format($count) }}
@endif
diff --git a/resources/views/blade/tabs/pane.blade.php b/resources/views/blade/tabs/pane.blade.php
index 6fd9685cdf6b..4139080618f1 100644
--- a/resources/views/blade/tabs/pane.blade.php
+++ b/resources/views/blade/tabs/pane.blade.php
@@ -6,10 +6,9 @@
merge(['class' => 'tab-pane fade']) }} style="min-height: 400px !important;">
@if (isset($header))
-
+
{{ $header }}
-
@endif
@if (isset($bulkactions))
diff --git a/resources/views/categories/index.blade.php b/resources/views/categories/index.blade.php
index 4e39def44d94..df83e366ffe0 100755
--- a/resources/views/categories/index.blade.php
+++ b/resources/views/categories/index.blade.php
@@ -6,46 +6,35 @@
@parent
@stop
+
{{-- Page content --}}
@section('content')
-
- @can('delete', App\Models\Category::class)
-
- @endcan
-
+
+
+ @can('delete', App\Models\Category::class)
+
+ @endcan
+
+
-
+
-
@stop
@section('moar_scripts')
diff --git a/resources/views/components/index.blade.php b/resources/views/components/index.blade.php
index 2b3cb884504e..2a304457e2e7 100644
--- a/resources/views/components/index.blade.php
+++ b/resources/views/components/index.blade.php
@@ -9,33 +9,23 @@
{{-- Page content --}}
@section('content')
-
-
+
+
+
+
+
+
+
@stop
@section('moar_scripts')
diff --git a/resources/views/consumables/index.blade.php b/resources/views/consumables/index.blade.php
index 070647562425..6ccb59049eaa 100644
--- a/resources/views/consumables/index.blade.php
+++ b/resources/views/consumables/index.blade.php
@@ -11,25 +11,17 @@
-
+
diff --git a/resources/views/departments/index.blade.php b/resources/views/departments/index.blade.php
index 3c56cf973051..65249a8d49ea 100644
--- a/resources/views/departments/index.blade.php
+++ b/resources/views/departments/index.blade.php
@@ -10,29 +10,20 @@
@section('content')
-
-
-
+
-
@stop
+
@section('moar_scripts')
@include ('partials.bootstrap-table')
diff --git a/resources/views/depreciations/index.blade.php b/resources/views/depreciations/index.blade.php
index 86365b6e17c7..d07ec5ed6bab 100755
--- a/resources/views/depreciations/index.blade.php
+++ b/resources/views/depreciations/index.blade.php
@@ -6,34 +6,22 @@
@parent
@stop
+
{{-- Page content --}}
@section('content')
-
-
-
-
-
-
-
-
+
+
+
-
@stop
@section('moar_scripts')
diff --git a/resources/views/groups/index.blade.php b/resources/views/groups/index.blade.php
index c235563b3553..d45cf414b8e1 100755
--- a/resources/views/groups/index.blade.php
+++ b/resources/views/groups/index.blade.php
@@ -15,35 +15,17 @@
@section('content')
-
-
-
- | {{ trans('general.id') }} |
- {{ trans('admin/groups/table.name') }} |
- {{ trans('admin/groups/table.users') }} |
- {{ trans('general.notes') }} |
- {{ trans('general.created_at') }} |
- {{ trans('general.created_by') }} |
- {{ trans('general.created_at') }} |
- {{ trans('general.updated_at') }} |
- {{ trans('table.actions') }} |
-
-
-
-
+
+
@stop
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php
index 23dc3074bcb7..53c725c17d1f 100644
--- a/resources/views/layouts/default.blade.php
+++ b/resources/views/layouts/default.blade.php
@@ -121,12 +121,18 @@
.label2_fields,
.l2fd-main,
- .l2fd-listitem
+ .l2fd-listitem,
+ .fixed-table-loading,
+ .list-group-item
{
background-color: var(--box-bg) !important;
color: var(--color-fg) !important;
}
+ .list-group-item {
+ border: var(--tab-bottom-border);
+ }
+
footer.main-footer {
color: var(--main-footer-text-color) !important;
background-color: var(--main-footer-bg-color) !important;
@@ -419,6 +425,8 @@
border-top: var(--box-header-top-border);
}
+
+
.box-header.with-border {
border-bottom: var(--box-header-bottom-border);
}
@@ -894,6 +902,10 @@
color: white !important;
}
+ .box.box-theme {
+ border-top: var(--main-theme-color) !important;
+ }
+
{{-- Custom CSS --}}
diff --git a/resources/views/licenses/index.blade.php b/resources/views/licenses/index.blade.php
index 2793210d0fed..919bbb9dcc4a 100755
--- a/resources/views/licenses/index.blade.php
+++ b/resources/views/licenses/index.blade.php
@@ -12,23 +12,17 @@
-
+
diff --git a/resources/views/locations/view.blade.php b/resources/views/locations/view.blade.php
index 48ba45f2f070..0772a0783797 100644
--- a/resources/views/locations/view.blade.php
+++ b/resources/views/locations/view.blade.php
@@ -32,7 +32,7 @@ class="active"
@@ -140,7 +140,7 @@ class="active"
- @include('partials.users-bulk-actions')
+
@@ -168,7 +168,7 @@ class="active"
-
+
@@ -195,7 +195,7 @@ class="active"
-
+
@@ -220,7 +220,7 @@ class="active"
-
+
@@ -369,132 +369,76 @@ class="active"
- @if ($location->image!='')
-
-
->url('locations/'.e($location->image)) }})
-
- @endif
-
- @if (($location->state!='') && ($location->country!='') && (config('services.google.maps_api_key')))
-
-
 }}&size=700x500&maptype=roadmap&key={{ config('services.google.maps_api_key') }})
-
- @endif
-
-
-
-
-
- @if ($location->notes)
- -
- {{ trans('general.notes') }}:
- {!! nl2br(Helper::parseEscapedMarkedownInline($location->notes)) !!}
-
- @endif
-
- @if ($location->address!='')
- - {{ $location->address }}
- @endif
- @if ($location->address2!='')
- - {{ $location->address2 }}
- @endif
- @if (($location->city!='') || ($location->state!='') || ($location->zip!=''))
- - {{ $location->city }} {{ $location->state }} {{ $location->zip }}
- @endif
- @if ($location->manager)
- - {{ trans('admin/users/table.manager') }}: {!! $location->manager->present()->nameUrl() !!}
- @endif
- @if ($location->company)
- - {{ trans('admin/companies/table.name') }}: {!! $location->company->present()->nameUrl() !!}
- @endif
- @if ($location->parent)
- - {{ trans('admin/locations/table.parent') }}: {!! $location->parent->present()->nameUrl() !!}
- @endif
- @if ($location->ldap_ou)
- - {{ trans('admin/locations/table.ldap_ou') }}: {{ $location->ldap_ou }}
- @endif
-
-
- @if ((($location->address!='') && ($location->city!='')) || ($location->state!='') || ($location->country!=''))
- -
-
- {!! trans('admin/locations/message.open_map', ['map_provider_icon' => '']) !!}
-
-
-
- -
-
- {!! trans('admin/locations/message.open_map', ['map_provider_icon' => '']) !!}
-
-
- @endif
-
-
-
-
- @can('update', $location)
- @if ($location->deleted_at=='')
-
- @else
-
- @endif
- @endcan
-
- @if ($location->deleted_at=='')
-
-
- @endif
-
- @can('delete', $location)
-
-
- @if ($location->deleted_at=='')
-
- @if ($location->isDeletable())
-
- @else
-
-
-
- {{ trans('general.delete') }}
-
-
- @endif
-
- @else
-
- @endif
-
- @endcan
+
+
+
+
+ @can('update', $location)
+ @if ($location->deleted_at=='')
+
+
+ {{ trans('admin/locations/table.update') }}
+
+ @else
+
+
+ {{ trans('admin/locations/table.update') }}
+
+ @endif
+ @endcan
+
+ @if ($location->deleted_at=='')
+
+
+ {{ trans('admin/locations/table.print_inventory') }}
+
+
+
+
+ {{ trans('admin/locations/table.print_all_assigned') }}
+
+
+ @endif
+
+ @can('delete', $location)
+
+ @if ($location->deleted_at=='')
+ @if ($location->isDeletable())
+
+ @else
+
+ @endif
+
+ @else
+
+ @endif
+
+ @endcan
+
+
+
+
+ @if ($location->ldap_ou)
+
+ {{ $location->ldap_ou }}
+
+ @endif
+
+
+
+
diff --git a/resources/views/manufacturers/edit.blade.php b/resources/views/manufacturers/edit.blade.php
index 1e092ab7ee82..7f9d37d7073a 100755
--- a/resources/views/manufacturers/edit.blade.php
+++ b/resources/views/manufacturers/edit.blade.php
@@ -1,112 +1,117 @@
-@extends('layouts/edit-form', [
- 'createText' => trans('admin/manufacturers/table.create') ,
- 'updateText' => trans('admin/manufacturers/table.update'),
- 'helpTitle' => trans('admin/manufacturers/table.about_manufacturers_title'),
- 'helpText' => trans('admin/manufacturers/table.about_manufacturers_text'),
- 'formAction' => (isset($item->id)) ? route('manufacturers.update', ['manufacturer' => $item->id]) : route('manufacturers.store'),
-])
+@extends('layouts/default')
+{{-- Page title --}}
+@section('title')
+ {{ trans('general.manufacturers') }}
+@stop
{{-- Page content --}}
-@section('inputFields')
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-@include ('partials.forms.edit.image-upload', ['image_path' => app('manufacturers_upload_path')])
-
-
-
-
-
-
+@section('content')
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @include ('partials.forms.edit.image-upload', ['image_path' => app('manufacturers_upload_path')])
+
+
+
+
+
+
+
+
+
+
+
@stop
diff --git a/resources/views/manufacturers/index.blade.php b/resources/views/manufacturers/index.blade.php
index cc2041c9d413..da4e16effc3b 100755
--- a/resources/views/manufacturers/index.blade.php
+++ b/resources/views/manufacturers/index.blade.php
@@ -26,41 +26,33 @@
@else
-
- @can('delete', App\Models\Manufacturer::class)
-
- @endcan
-
+
+
+ @can('delete', App\Models\Manufacturer::class)
+
+ @endcan
+
+
-
- @endif
+
+
+
+
+
+ @endif
@stop
diff --git a/resources/views/manufacturers/view.blade.php b/resources/views/manufacturers/view.blade.php
index 3054e311e398..569eb37c2eb9 100644
--- a/resources/views/manufacturers/view.blade.php
+++ b/resources/views/manufacturers/view.blade.php
@@ -9,206 +9,195 @@
@stop
@section('header_right')
-
- {{ trans('general.back') }}
-
-
-
-
-
-
+ {{ trans('general.update') }}
@stop
{{-- Page content --}}
@section('content')
+
+
+
+
+ @can('view', \App\Models\Asset::class)
+
+ @endcan
+
+ @can('view', \App\Models\License::class)
+
+ @endcan
+
+ @can('view', \App\Models\Accessory::class)
+
+ @endcan
+
+ @can('view', \App\Models\Consumable::class)
+
+ @endcan
+
+ @can('view', \App\Models\Component::class)
+
+ @endcan
+
+ @can('update', $manufacturer)
+
+ @endcan
+
+
+
+
+
+ @can('view', \App\Models\Asset::class)
+
+
+ {{ trans('general.assets') }}
+
+
+
+
+
+
+
+
+
+
+ @endcan
+
+
+
+ @can('view', \App\Models\License::class)
+
+
+ {{ trans('general.licenses') }}
+
+
+
+
+
+
+ @endcan
+
+
+
+ @can('view', \App\Models\Accessory::class)
+
+
+ {{ trans('general.accessories') }}
+
+
+
+
+
+
+ @endcan
+
+
+
+ @can('view', \App\Models\Consumable::class)
+
+
+ {{ trans('general.consumables') }}
+
+
+
+
+
+
+ @endcan
+
+
+
+ @can('view', \App\Models\Component::class)
+
+
+ {{ trans('general.components') }}
+
+
+
+
+
+
+ @endcan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- @include('partials.asset-bulk-actions')
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@stop
@section('moar_scripts')
diff --git a/resources/views/models/index.blade.php b/resources/views/models/index.blade.php
index 13edd735dd5b..382035dea438 100755
--- a/resources/views/models/index.blade.php
+++ b/resources/views/models/index.blade.php
@@ -14,34 +14,30 @@
{{-- Page content --}}
@section('content')
-
-
-
- @include('partials.models-bulk-actions')
-
+
+
+
+
+
+
+
+
+
-
@stop
@section('moar_scripts')
diff --git a/resources/views/statuslabels/index.blade.php b/resources/views/statuslabels/index.blade.php
index c96c42ac32bb..2ab5cf6de8c6 100755
--- a/resources/views/statuslabels/index.blade.php
+++ b/resources/views/statuslabels/index.blade.php
@@ -8,69 +8,48 @@
{{-- Page content --}}
@section('content')
+
+
+
+
+
+
+
+
+
+
+
+
+ {!! trans('admin/statuslabels/table.info') !!}
+
+
+
+ {{ trans('admin/statuslabels/table.deployable') }}: {!! trans('admin/statuslabels/message.help.deployable') !!}
+
+
+
+ {{ trans('admin/statuslabels/table.pending') }}: {{ trans('admin/statuslabels/message.help.pending') }}
+
+
+
+ {{ trans('admin/statuslabels/table.undeployable') }}: {{ trans('admin/statuslabels/message.help.undeployable') }}
+
+
+
+ {{ trans('admin/statuslabels/table.archived') }}: {{ trans('admin/statuslabels/message.help.archived') }}
+
+
+
+
-
-
-
-
-
{{ trans('admin/statuslabels/table.about') }}
-
-
-
-
{!! trans('admin/statuslabels/table.info') !!}
-
-
-
-
-
-
-
{{ trans('admin/statuslabels/table.deployable') }}: {!! trans('admin/statuslabels/message.help.deployable') !!}
-
-
-
-
-
-
{{ trans('admin/statuslabels/table.pending') }}: {{ trans('admin/statuslabels/message.help.pending') }}
-
-
-
-
-
{{ trans('admin/statuslabels/table.undeployable') }}: {{ trans('admin/statuslabels/message.help.undeployable') }}
-
-
-
-
-
-
{{ trans('admin/statuslabels/table.archived') }}: {{ trans('admin/statuslabels/message.help.archived') }}
-
-
-
-
-
-
@stop
@section('moar_scripts')
diff --git a/resources/views/suppliers/index.blade.php b/resources/views/suppliers/index.blade.php
index 1e5d2b7f5b9d..cb0f60feea8d 100755
--- a/resources/views/suppliers/index.blade.php
+++ b/resources/views/suppliers/index.blade.php
@@ -11,39 +11,29 @@
-
- @can('delete', App\Models\Supplier::class)
-
- @endcan
-
+
+
+ @can('delete', App\Models\Supplier::class)
+
+ @endcan
+
+
+
+
+
-
@stop
diff --git a/resources/views/suppliers/view.blade.php b/resources/views/suppliers/view.blade.php
index ae52f6eee295..51b69c4ccb0b 100755
--- a/resources/views/suppliers/view.blade.php
+++ b/resources/views/suppliers/view.blade.php
@@ -10,331 +10,235 @@
@stop
@section('header_right')
-
- {{ trans('admin/suppliers/table.update') }}
-
- {{ trans('general.back') }}
-
+
+ {{ trans('general.update') }}
@stop
{{-- Page content --}}
@section('content')
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
- {{ trans('general.assets') }}
- {!! ($supplier->assets()->AssetsForShow()->count() > 0 ) ? ''.number_format($supplier->assets()->AssetsForShow()->count()).'' : '' !!}
-
-
-
-
-
- -
-
-
-
-
-
- {{ trans('general.accessories') }}
- {!! ($supplier->accessories->count() > 0 ) ? ''.number_format($supplier->accessories->count()).'' : '' !!}
-
-
-
-
- -
-
-
-
-
-
- {{ trans('general.licenses') }}
- {!! ($supplier->licenses->count() > 0 ) ? ''.number_format($supplier->licenses->count()).'' : '' !!}
-
-
-
-
- -
-
-
-
-
-
- {{ trans('general.components') }}
- {!! ($supplier->components->count() > 0 ) ? ''.number_format($supplier->components->count()).'' : '' !!}
-
-
-
-
- -
-
-
-
-
-
- {{ trans('general.consumables') }}
- {!! ($supplier->consumables->count() > 0 ) ? ''.number_format($supplier->consumables->count()).'' : '' !!}
-
-
-
-
- -
-
-
-
-
-
- {{ trans('admin/maintenances/general.maintenances') }}
- {!! ($supplier->maintenances->count() > 0 ) ? ''.number_format($supplier->maintenances->count()).'' : '' !!}
-
-
-
-
- -
-
-
-
-
-
-
+
+
+
+
+ @can('view', \App\Models\Asset::class)
+
+ @endcan
+
+ @can('view', \App\Models\Accessory::class)
+
+ @endcan
+
+
+ @can('view', \App\Models\Consumable::class)
+
+ @endcan
+
+ @can('view', \App\Models\Component::class)
+
+ @endcan
+
+ @can('view', \App\Models\AssetMaintenance::class)
+
+ @endcan
+
+
+
+ @can('update', $supplier)
+
+ @endcan
+
+
+
+
+
+
+
+
+ @can('view', \App\Models\Asset::class)
+
+
+ {{ trans('general.assets') }}
+
+
+
+
+
+
+
+
+
+
+
+ @endcan
+
+
+
+
+ @can('view', \App\Models\Accessory::class)
+
+
+ {{ trans('general.accessories') }}
+
+
+
+
+
+
+
+ @endcan
+
+
+
+ @can('view', \App\Models\License::class)
+
+
+ {{ trans('general.licenses') }}
+
+
+
+
+
+
+
+ @endcan
+
+
+
+ @can('view', \App\Models\Component::class)
+
+
+ {{ trans('general.components') }}
+
+
+
+
+
+
+ @endcan
+
+
+
+ @can('view', \App\Models\Consumable::class)
+
+
+ {{ trans('general.consumables') }}
+
+
+
+
+
+
+ @endcan
+
+
+
+
+ @can('view', \App\Models\Asset::class)
+
+
+ {{ trans('admin/maintenances/general.maintenances') }}
+
+
+
+
+
+
+ @endcan
+
+
+
+
+
{{ trans('general.files') }}
- {!! ($supplier->uploads->count() > 0 ) ? ''.number_format($supplier->uploads->count()).'' : '' !!}
-
-
-
-
- -
-
-
- {{ trans('button.upload') }}
-
-
-
-
-
-
-
-
-
-
{{ trans('general.assets') }}
-
-
- @include('partials.asset-bulk-actions')
-
-
-
-
-
-
-
{{ trans('general.accessories') }}
-
-
-
-
-
-
{{ trans('general.licenses') }}
-
-
-
-
-
-
-
{{ trans('general.components') }}
-
-
-
-
-
-
{{ trans('general.consumables') }}
-
-
-
-
-
-
-
{{ trans('admin/maintenances/general.maintenances') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @if (($supplier->address!='') && ($supplier->state!='') && ($supplier->country!='') && (config('services.google.maps_api_key')))
-
-
 }}&size=500x300&maptype=roadmap&key={{ config('services.google.maps_api_key') }})
-
- @endif
-
-
-
- @if ($supplier->contact!='')
- - {{ $supplier->contact }}
- @endif
- @if ($supplier->phone!='')
- -
- {{ $supplier->phone }}
-
- @endif
- @if ($supplier->fax!='')
- - {{ $supplier->fax }}
- @endif
-
- @if ($supplier->email!='')
- -
-
-
- {{ $supplier->email }}
-
-
- @endif
-
- @if ($supplier->url!='')
- -
-
- {{ $supplier->url }}
-
- @endif
-
- @if ($supplier->address!='')
-
- {{ $supplier->address }}
-
- @if ($supplier->address2)
-
- {{ $supplier->address2 }}
- @endif
- @if (($supplier->city) || ($supplier->state))
-
- {{ $supplier->city }} {{ strtoupper($supplier->state) }} {{ $supplier->zip }} {{ strtoupper($supplier->country) }}
- @endif
-
- @endif
-
- @if ($supplier->notes!='')
- - {!! nl2br(Helper::parseEscapedMarkedownInline($supplier->notes)) !!}
- @endif
-
-
- @if ($supplier->image!='')
-
-
->url(app('suppliers_upload_url').e($supplier->image)) }})
-
- @endif
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@can('update', \App\Models\Supplier::class)
@include ('modals.upload-file', ['item_type' => 'supplier', 'item_id' => $supplier->id])
diff --git a/tests/Feature/Console/OptimizeTest.php b/tests/Feature/Console/OptimizeTest.php
index 8dd6f270f948..b892e57c2434 100644
--- a/tests/Feature/Console/OptimizeTest.php
+++ b/tests/Feature/Console/OptimizeTest.php
@@ -11,6 +11,7 @@ public function testOptimizeSucceeds()
$this->beforeApplicationDestroyed(function () {
$this->artisan('config:clear');
$this->artisan('route:clear');
+ $this->artisan('view:clear');
});
$this->artisan('optimize')->assertSuccessful();