Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion resources/views/blade/box/container.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
'box_style' => 'default',
'header' => false,
'footer' => false,

])

<!-- Start box component -->
Expand Down
49 changes: 49 additions & 0 deletions resources/views/blade/bulk-menus/assets.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
@aware(['name'])

<form
method="POST"
action="{{ route('hardware.bulkedit.show') }}"
accept-charset="UTF-8"
class="form-inline"
id="{{ Illuminate\Support\Str::camel($name) }}Form"
>
@csrf

<div style="width:100% !important;">
{{-- The sort and order will only be used if the cookie is actually empty (like on first-use) --}}
<input name="sort" type="hidden" value="assets.id">
<input name="order" type="hidden" value="asc">
<label for="bulk_actions">
<span class="sr-only">
{{ trans('button.bulk_actions') }}
</span>
</label>
<select name="bulk_actions" class="form-control select2" aria-label="bulk_actions" style="width: 350px !important;">
@if ((isset($status)) && ($status == 'Deleted'))
@can('delete', \App\Models\Asset::class)
<option value="restore">{{trans('button.restore')}}</option>
@endcan
@else

@can('update', \App\Models\Asset::class)
<option value="edit">{{ trans('general.bulk_edit') }}</option>
<option value="maintenance">{{ trans('button.add_maintenance') }}</option>
@endcan

@if((!isset($status)) || (($status != 'Deployed') && ($status != 'Archived')))
@can('checkout', \App\Models\Asset::class)
<option value="checkout">{{ trans('general.bulk_checkout') }}</option>
@endcan
@endif

@can('delete', \App\Models\Asset::class)
<option value="delete">{{ trans('general.bulk_delete') }}</option>
@endcan

<option value="labels">{{ trans_choice('button.generate_labels', 2) }}</option>
@endif
</select>

<button class="btn btn-theme" id="{{ Illuminate\Support\Str::camel($name) }}Button" disabled>{{ trans('button.go') }}</button>
</div>
</form>
38 changes: 38 additions & 0 deletions resources/views/blade/table.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@props([
'presenter' => null,
'buttons' => null,
'export_filename' => 'export-'.date('Y-m-d'),
'api_url' => null,
'show_column_search' => false,
'show_advanced_search' => false,
])

@aware(['name'])

<table
role="table"
class="table table-striped snipe-table"
data-cookie-id-table="{{ $name }}ListingTable"
data-id-table="{{ $name }}ListingTable"
data-sort-order="asc"
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 ($buttons)
data-buttons="{{ $buttons }}"
@endif
@if ($api_url)
data-side-pagination="server"
data-url="{{ $api_url }}"
@endif
data-export-options='{
"fileName": "{{ $export_filename }}",
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
}'>
</table>
14 changes: 14 additions & 0 deletions resources/views/blade/tabs/index.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- start tab container -->
<div class="nav-tabs-custom">

<ul class="nav nav-tabs hidden-print">
{{ $tabnav }}
</ul>

<div class="tab-content">
{{ $tabpanes }}
</div>


</div>
<!-- end tab container -->
6 changes: 6 additions & 0 deletions resources/views/blade/tabs/nav-item-upload.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<li class="pull-right">
<a href="#" data-toggle="modal" data-target="#uploadFileModal">
<x-icon type="paperclip" />
{{ trans('button.upload') }}
</a>
</li>
27 changes: 27 additions & 0 deletions resources/views/blade/tabs/nav-item.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@props([
'name' => false,
'label' => false,
'count' => 0,
'icon' => false,
'icon_style' => false,
'tooltip' => false,
])
<!-- start tab nav item -->
<li {{ $attributes->merge(['class' => '']) }}>
<a href="#{{ $name ?? 'info' }}" data-toggle="tab"{!! ($tooltip) ? ' data-tooltip="true" title="'.$tooltip.'"' : '' !!}>

@if ($icon)
<i class="{{ $icon }}" style="font-size: 17px" aria-hidden="true"></i>
@endif

<span class="sr-only">
{{ $label }}
</span>

@if ($count > 0)
<span class="badge">{{ number_format($count) }} </span>
@endif

</a>
</li>
<!-- end tab nav item -->
23 changes: 23 additions & 0 deletions resources/views/blade/tabs/pane.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@props([
'name' => 'default',
])

<!-- tab-pane -->
<div id="{{ $name }}" {{ $attributes->merge(['class' => 'tab-pane']) }}>

@if (isset($header))
<h2 class="box-title{{ (!isset($bulkactions)) ? 'pull-left' : '' }}">
{{ $header }}
</h2>

@endif

@if (isset($bulkactions))
<div id="{{ Illuminate\Support\Str::camel($name) }}ToolBar" class="pull-left" style="min-width:500px !important; padding-top: 10px;">
{{ $bulkactions }}
</div>
@endif

{{ $content }}
</div>
<!-- /.tab-pane -->
Loading
Loading