report print updated
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
<div class="table-responsive overflow-auto mt-4">
 | 
			
		||||
    <table class="table align-items-center">
 | 
			
		||||
    <table class="table align-items-center rp-border-collapse">
 | 
			
		||||
        @include($class->views['table.header'])
 | 
			
		||||
            <tbody>
 | 
			
		||||
                @if (!empty($class->rows[$table]))
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
<tfoot>
 | 
			
		||||
    <tr>
 | 
			
		||||
    <tr class="rp-border-top-1">
 | 
			
		||||
        <th class="report-column">{{ trans_choice('general.totals', 1) }}</th>
 | 
			
		||||
        @php $total_total = 0; @endphp
 | 
			
		||||
        @foreach($class->totals[$table] as $total)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,9 @@
 | 
			
		||||
@php $row_total = 0; @endphp
 | 
			
		||||
<tr>
 | 
			
		||||
    <td class="report-column rp-border-top-1">{{ $class->getTableRowList()[$id] }}</td>
 | 
			
		||||
<tr class="rp-border-top-1">
 | 
			
		||||
    <td class="report-column">{{ $class->getTableRowList()[$id] }}</td>
 | 
			
		||||
    @foreach($items as $item)
 | 
			
		||||
        @php $row_total += $item; @endphp
 | 
			
		||||
        <td class="report-column text-right px-0 rp-border-top-1">@money($item, setting('default.currency'), true)</td>
 | 
			
		||||
        <td class="report-column text-right px-0">@money($item, setting('default.currency'), true)</td>
 | 
			
		||||
    @endforeach
 | 
			
		||||
    <td class="report-column text-right rp-border-top-1">@money($row_total, setting('default.currency'), true)</td>
 | 
			
		||||
    <td class="report-column text-right">@money($row_total, setting('default.currency'), true)</td>
 | 
			
		||||
</tr>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,12 +1,12 @@
 | 
			
		||||
<div class="table-responsive overflow-auto mt-5">
 | 
			
		||||
    <table class="table align-items-center">
 | 
			
		||||
    <table class="table align-items-center rp-border-collapse">
 | 
			
		||||
        <tfoot class="border-top-style">
 | 
			
		||||
            <tr>
 | 
			
		||||
                <th class="report-column rp-border-top-1">{{ trans('reports.net_profit') }}</th>
 | 
			
		||||
            <tr class="rp-border-top-1">
 | 
			
		||||
                <th class="report-column">{{ trans('reports.net_profit') }}</th>
 | 
			
		||||
                @foreach($class->net_profit as $profit)
 | 
			
		||||
                    <th class="report-column text-right px-0 rp-border-top-1">@money($profit, setting('default.currency'), true)</th>
 | 
			
		||||
                    <th class="report-column text-right px-0">@money($profit, setting('default.currency'), true)</th>
 | 
			
		||||
                @endforeach
 | 
			
		||||
                <th class="report-column text-right rp-border-top-1">
 | 
			
		||||
                <th class="report-column text-right">
 | 
			
		||||
                    @money(array_sum($class->net_profit), setting('default.currency'), true)
 | 
			
		||||
                </th>
 | 
			
		||||
            </tr>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,12 +1,12 @@
 | 
			
		||||
<div class="table-responsive overflow-auto">
 | 
			
		||||
    <table class="table align-items-center">
 | 
			
		||||
    <table class="table align-items-center rp-border-collapse">
 | 
			
		||||
        <thead class="border-top-style">
 | 
			
		||||
            <tr>
 | 
			
		||||
                <th class="report-column text-right rp-border-bottom-1"></th>
 | 
			
		||||
            <tr class="rp-border-bottom-1">
 | 
			
		||||
                <th class="report-column text-right"></th>
 | 
			
		||||
                @foreach($class->dates as $date)
 | 
			
		||||
                    <th class="report-column text-right px-0 rp-border-bottom-1">{{ $date }}</th>
 | 
			
		||||
                    <th class="report-column text-right px-0">{{ $date }}</th>
 | 
			
		||||
                @endforeach
 | 
			
		||||
                <th class="report-column text-right rp-border-bottom-1">
 | 
			
		||||
                <th class="report-column text-right">
 | 
			
		||||
                    {{ trans_choice('general.totals', 1) }}
 | 
			
		||||
                </th>
 | 
			
		||||
            </tr>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,11 +1,11 @@
 | 
			
		||||
<tfoot>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <th class="report-column rp-border-top-1 text-left">{{ trans_choice('general.totals', 1) }}</th>
 | 
			
		||||
    <tr class="rp-border-top-1">
 | 
			
		||||
        <th class="report-column text-left">{{ trans_choice('general.totals', 1) }}</th>
 | 
			
		||||
        @php $total_total = 0; @endphp
 | 
			
		||||
        @foreach($class->totals[$table] as $date => $total)
 | 
			
		||||
            @php $total_total += $total; @endphp
 | 
			
		||||
            <th class="report-column text-right px-0 rp-border-top-1">@money($total, setting('default.currency'), true)</th>
 | 
			
		||||
            <th class="report-column text-right px-0">@money($total, setting('default.currency'), true)</th>
 | 
			
		||||
        @endforeach
 | 
			
		||||
        <th class="report-column text-right rp-border-top-1">@money($total_total, setting('default.currency'), true)</th>
 | 
			
		||||
        <th class="report-column text-right">@money($total_total, setting('default.currency'), true)</th>
 | 
			
		||||
    </tr>
 | 
			
		||||
</tfoot>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
<div class="table-responsive overflow-auto">
 | 
			
		||||
    <table class="table align-items-center">
 | 
			
		||||
    <table class="table align-items-center rp-border-collapse">
 | 
			
		||||
        <thead class="border-top-style">
 | 
			
		||||
            <tr>
 | 
			
		||||
                <th class="report-column text-right rp-border-bottom-1"></th>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,11 +1,11 @@
 | 
			
		||||
<tfoot>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <th class="report-column rp-border-top-1 text-left">{{ trans('reports.net') }}</th>
 | 
			
		||||
    <tr class="rp-border-top-1">
 | 
			
		||||
        <th class="report-column text-left">{{ trans('reports.net') }}</th>
 | 
			
		||||
        @php $total_total = 0; @endphp
 | 
			
		||||
        @foreach($class->totals[$table] as $total)
 | 
			
		||||
            @php $total_total += $total; @endphp
 | 
			
		||||
            <th class="report-column text-right px-0 rp-border-top-1">@money($total, setting('default.currency'), true)</th>
 | 
			
		||||
            <th class="report-column text-right px-0">@money($total, setting('default.currency'), true)</th>
 | 
			
		||||
        @endforeach
 | 
			
		||||
        <th class="report-column text-right rp-border-top-1">@money($total_total, setting('default.currency'), true)</th>
 | 
			
		||||
        <th class="report-column text-right">@money($total_total, setting('default.currency'), true)</th>
 | 
			
		||||
    </tr>
 | 
			
		||||
</tfoot>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user