styling reports
This commit is contained in:
		@@ -1 +0,0 @@
 | 
			
		||||
<div> </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,12 +1,12 @@
 | 
			
		||||
<div class="table-responsive overflow-auto mt-4">
 | 
			
		||||
<div class="table-responsive">
 | 
			
		||||
    <table class="table table-hover 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="row rp-border-bottom-1 font-size-unset px-3">
 | 
			
		||||
                <th class="{{ $class->column_name_width }} text-right border-top-0 rp-border-bottom-1"></th>
 | 
			
		||||
                @foreach($class->dates as $date)
 | 
			
		||||
                    <th class="report-column text-right px-0 rp-border-bottom-1">{{ $date }}</th>
 | 
			
		||||
                    <th class="{{ $class->column_value_width }} text-right px-0 border-top-0 rp-border-bottom-1">{{ $date }}</th>
 | 
			
		||||
                @endforeach
 | 
			
		||||
                <th class="report-column text-right rp-border-bottom-1">{{ trans_choice('general.totals', 1) }}</th>
 | 
			
		||||
                <th class="{{ $class->column_name_width }} text-right pl-0 pr-4 border-top-0 rp-border-bottom-1">{{ trans_choice('general.totals', 1) }}</th>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </thead>
 | 
			
		||||
    </table>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,11 +1,11 @@
 | 
			
		||||
<tfoot>
 | 
			
		||||
    <tr class="rp-border-top-1">
 | 
			
		||||
        <th class="report-column text-left">{{ trans('reports.net') }}</th>
 | 
			
		||||
    <tr class="row rp-border-bottom-1 font-size-unset px-3">
 | 
			
		||||
        <th class="{{ $class->column_name_width }} text-left">{{ trans('reports.net') }}</th>
 | 
			
		||||
        @php $grand_total = 0; @endphp
 | 
			
		||||
        @foreach($class->footer_totals[$table] as $total)
 | 
			
		||||
            @php $grand_total += $total; @endphp
 | 
			
		||||
            <th class="report-column text-right px-0">@money($total, setting('default.currency'), true)</th>
 | 
			
		||||
            <th class="{{ $class->column_value_width }} text-right px-0">@money($total, setting('default.currency'), true)</th>
 | 
			
		||||
        @endforeach
 | 
			
		||||
        <th class="report-column text-right">@money($grand_total, setting('default.currency'), true)</th>
 | 
			
		||||
        <th class="{{ $class->column_name_width }} text-right pl-0 pr-4">@money($grand_total, setting('default.currency'), true)</th>
 | 
			
		||||
    </tr>
 | 
			
		||||
</tfoot>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user