From c5c6b3bbc6031f3c7f70312eff6800a710653f4e Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 11 Mar 2024 14:23:25 +0000 Subject: [PATCH 1/7] Starting the revised print page Signed-off-by: snipe --- resources/views/users/print.blade.php | 182 ++++++++++++++++++++++---- 1 file changed, 156 insertions(+), 26 deletions(-) diff --git a/resources/views/users/print.blade.php b/resources/views/users/print.blade.php index cd82289863..19680f65c2 100644 --- a/resources/views/users/print.blade.php +++ b/resources/views/users/print.blade.php @@ -3,9 +3,24 @@ {{ trans('general.assigned_to', ['name' => $show_user->present()->fullName()]) }} - {{ date('Y-m-d H:i', time()) }} + + + + {{-- stylesheets --}} + + + + + + + @@ -55,25 +74,44 @@ @php $counter = 1; @endphp - - - - - - - - - - - - - - - - - - +
+ poots +
+ +
{{ trans('general.assets') }}
{{ trans('admin/hardware/table.asset_tag') }}{{ trans('general.name') }}{{ trans('general.category') }}{{ trans('admin/hardware/form.model') }}{{ trans('admin/hardware/form.serial') }}{{ trans('admin/hardware/table.checkout_date') }}{{ trans('general.signature') }}
+ + + + + + + + + + + + + + + + + + @foreach ($assets as $asset) @@ -85,13 +123,13 @@ - - @if($settings->show_assigned_assets) + @if ($settings->show_assigned_assets) @php $assignedCounter = 1; @endphp @@ -116,6 +154,7 @@ $counter++ @endphp @endforeach +
{{ trans('general.assets') }}
#{{ trans('admin/hardware/table.asset_tag') }}{{ trans('general.name') }}{{ trans('general.category') }}{{ trans('admin/hardware/form.model') }}{{ trans('admin/hardware/form.serial') }}{{ trans('admin/hardware/table.checkout_date') }}{{ trans('general.signature') }}
{{ $asset->serial }} {{ $asset->last_checkout }} + @if (($asset->assetlog->first()) && ($asset->assetlog->first()->accept_signature!='')) @endif
@endif @@ -256,6 +295,97 @@ +{{-- Javascript files --}} + + + + +@push('css') + +@endpush + +@push('js') + + + + + + From 85123b3e66a8483c3997ff1d1136dd99bb74c99e Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 13 Mar 2024 12:36:17 +0000 Subject: [PATCH 2/7] Rework print page Still seeing a weird error tho, not done yet Signed-off-by: snipe --- resources/views/users/print.blade.php | 148 +++++++++++++++++--------- 1 file changed, 97 insertions(+), 51 deletions(-) diff --git a/resources/views/users/print.blade.php b/resources/views/users/print.blade.php index 19680f65c2..6a9e3d43d1 100644 --- a/resources/views/users/print.blade.php +++ b/resources/views/users/print.blade.php @@ -37,6 +37,11 @@ max-height: 40px; } + h4 { + margin-top: 20px; + margin-bottom: 10px; + } + +