A free open source IT asset/license management system
Added info-panel components
snipecc971dba4c11
diff --git a/resources/views/blade/info-panel/image.blade.php b/resources/views/blade/info-panel/image.blade.phpnew file mode 100644index 0000000000..665f33077a--- /dev/null+++ b/resources/views/blade/info-panel/image.blade.php@@ -0,0 +1,8 @@+@aware(['infoPanelObj', 'img_path'])++@if (($img_path) && ($infoPanelObj->getImageUrl($img_path)))+ <a href="{{ $infoPanelObj->getImageUrl() }}" data-toggle="lightbox" data-type="image">+ <img src="{{ $infoPanelObj->getImageUrl() }}" class="profile-user-img img-responsive img-thumbnail" alt="{{ $infoPanelObj->name }}" style=" width: 100% !important; margin-bottom: 10px;">+ </a>+ <br>+@endif\ No newline at end of filediff --git a/resources/views/blade/info-panel/supplier.blade.php b/resources/views/blade/info-panel/supplier.blade.phpnew file mode 100644index 0000000000..288b0721d0--- /dev/null+++ b/resources/views/blade/info-panel/supplier.blade.php@@ -0,0 +1,55 @@+@props([+ 'infoPanelObj' => null,+])+++@if ($infoPanelObj->supplier)+ <x-info-element icon_type="supplier" title="{{ trans('general.supplier') }}">+ {!! $infoPanelObj->supplier->present()->formattedNameLink !!}+ <a class="pull-right js-copy-link" style="font-size: 16px; margin-right: 3px;" type="button" data-toggle="collapse" data-target="#supplierContact" aria-expanded="false" aria-controls="supplierContact">+ <x-icon type="plus" class="fa-faw"/>+ </a>+ </x-info-element>++ <span class="collapse" id="supplierContact">++ <x-info-element class="subitem well well-sm">+ <p style="line-height: 25px;">++ @if($infoPanelObj->supplier->contact)+ <x-icon type="contact-card" class="fa-fw"/>+ {{ $infoPanelObj->supplier->contact }}+ <br>+ @endif++ @if($infoPanelObj->supplier->phone)+ <x-icon type="phone" class="fa-fw"/>+ <x-info-element.phone>+ {{ $infoPanelObj->supplier->phone }}+ </x-info-element.phone>+ <br>+ @endif++ @if($infoPanelObj->supplier->email)+ <x-icon type="email" class="fa-fw"/>+ <x-info-element.email>+ {{ $infoPanelObj->supplier->email }}+ </x-info-element.email>+ <br>+ @endif++ @if($infoPanelObj->supplier->url)+ <x-icon type="external-link" class="fa-fw"/>+ <x-info-element.url>+ {{ $infoPanelObj->supplier->url }}+ </x-info-element.url>+ <br>+ @endif+++ {!! nl2br($infoPanelObj->supplier->present()->displayAddress) !!}+ </p>+ </x-info-element>+ </span>++@endif\ No newline at end of filediff --git a/resources/views/blade/well.blade.php b/resources/views/blade/well.blade.phpnew file mode 100644index 0000000000..f39f789e75--- /dev/null+++ b/resources/views/blade/well.blade.php@@ -0,0 +1,3 @@+<div {{ $attributes->merge(['class' => 'col-md-12 well']) }}>+ {{ $slot }}+</div>\ No newline at end of file