report view edited for summary print

This commit is contained in:
Burak Civan
2022-06-17 11:41:48 +03:00
parent d48ccdc628
commit cc3deb2e88
4 changed files with 65 additions and 20 deletions

View File

@ -1,10 +1,20 @@
<div>
<div class="flex items-center justify-between text-xl text-black-400 border-b pb-2">
<h2>{{ $table_name }}</h2>
<span>{{ $class->has_money ? money($grand_total, default_currency(), true) : $grand_total }}</span>
<div
@class([
'd-flex align-items-center justify-content-between rp-border-bottom-1 text' => $is_print,
'flex items-center justify-between text-xl text-black-400 border-b pb-2' => !$is_print
])
>
<h2>{{ $table_name }}</h2>
<span>{{ $class->has_money ? money($grand_total, default_currency(), true) : $grand_total }}</span>
</div>
@if (!empty($class->row_values[$table_key]))
<ul class="space-y-2 my-3">
<ul
@class([
'print-template text-normal' => $is_print,
'space-y-2 my-3' => !$is_print
])
>
@foreach($class->row_tree_nodes[$table_key] as $id => $node)
@include($class->views['summary.table.row'], ['tree_level' => 0])
@endforeach