mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-04 06:23:17 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			204 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			204 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<html lang="en">
 | 
						|
<head>
 | 
						|
    <title>Tax Summary Report</title>
 | 
						|
    <style type="text/css">
 | 
						|
        body {
 | 
						|
            font-family: "DejaVu Sans";
 | 
						|
        }
 | 
						|
 | 
						|
        table {
 | 
						|
            border-collapse: collapse;
 | 
						|
        }
 | 
						|
 | 
						|
        .sub-container{
 | 
						|
            padding: 0px 20px;
 | 
						|
        }
 | 
						|
 | 
						|
        .report-header {
 | 
						|
            width: 100%;
 | 
						|
            margin-bottom: 60px
 | 
						|
        }
 | 
						|
 | 
						|
        .heading-text {
 | 
						|
            font-weight: 600;
 | 
						|
            font-size: 24px;
 | 
						|
            color: #5851D8;
 | 
						|
            width: 100%;
 | 
						|
            text-align: left;
 | 
						|
            padding: 0px;
 | 
						|
            margin: 0px;
 | 
						|
        }
 | 
						|
 | 
						|
        .heading-date-range {
 | 
						|
            font-weight: 600;
 | 
						|
            font-size: 15px;
 | 
						|
            color: #A5ACC1;
 | 
						|
            width: 100%;
 | 
						|
            text-align: right;
 | 
						|
            padding: 0px;
 | 
						|
            margin: 0px;
 | 
						|
        }
 | 
						|
 | 
						|
        .sub-heading-text {
 | 
						|
            font-weight: 600;
 | 
						|
            font-size: 16px;
 | 
						|
            color: #595959;
 | 
						|
            padding: 0px;
 | 
						|
            margin: 0px;
 | 
						|
            margin-top: 6px;
 | 
						|
        }
 | 
						|
 | 
						|
        .tax-types-title {
 | 
						|
            margin-top: 20px;
 | 
						|
            padding-left: 3px;
 | 
						|
            font-size: 16px;
 | 
						|
            line-height: 21px;
 | 
						|
            color: #040405;
 | 
						|
        }
 | 
						|
 | 
						|
        .tax-table-container {
 | 
						|
            padding-left: 10px;
 | 
						|
        }
 | 
						|
 | 
						|
        .tax-table {
 | 
						|
            width: 100%;
 | 
						|
            padding-bottom: 10px;
 | 
						|
        }
 | 
						|
 | 
						|
        .tax-title {
 | 
						|
            padding: 0px;
 | 
						|
            margin: 0px;
 | 
						|
            font-size: 14px;
 | 
						|
            line-height: 21px;
 | 
						|
            color: #595959;
 | 
						|
        }
 | 
						|
 | 
						|
        .tax-amount {
 | 
						|
            padding: 0px;
 | 
						|
            margin: 0px;
 | 
						|
            font-size: 14px;
 | 
						|
            line-height: 21px;
 | 
						|
            text-align: right;
 | 
						|
            color: #595959;
 | 
						|
        }
 | 
						|
 | 
						|
        .tax-total-table {
 | 
						|
            border-top: 1px solid #EAF1FB;
 | 
						|
            width: 100%;
 | 
						|
        }
 | 
						|
 | 
						|
        .tax-total-cell {
 | 
						|
            padding-right: 20px;
 | 
						|
            padding-top: 10px;
 | 
						|
        }
 | 
						|
 | 
						|
        .tax-total {
 | 
						|
            padding-top: 10px;
 | 
						|
            padding-right: 30px;
 | 
						|
            padding: 0px;
 | 
						|
            margin: 0px;
 | 
						|
            text-align: right;
 | 
						|
            font-weight: 500;
 | 
						|
            font-size: 16px;
 | 
						|
            line-height: 21px;
 | 
						|
            text-align: right;
 | 
						|
            color: #040405;
 | 
						|
        }
 | 
						|
 | 
						|
        .report-footer {
 | 
						|
            width: 100%;
 | 
						|
            margin-top: 40px;
 | 
						|
            padding: 15px 20px;
 | 
						|
            background: #F9FBFF;
 | 
						|
            box-sizing: border-box;
 | 
						|
        }
 | 
						|
 | 
						|
        .report-footer-label {
 | 
						|
            padding: 0px;
 | 
						|
            margin: 0px;
 | 
						|
            text-align: left;
 | 
						|
            font-weight: 600;
 | 
						|
            font-size: 16px;
 | 
						|
            line-height: 21px;
 | 
						|
            color: #595959;
 | 
						|
        }
 | 
						|
 | 
						|
        .report-footer-value {
 | 
						|
            padding: 0px;
 | 
						|
            margin: 0px;
 | 
						|
            text-align: right;
 | 
						|
            font-weight: 500;
 | 
						|
            font-size: 20px;
 | 
						|
            line-height: 21px;
 | 
						|
            color: #5851D8;
 | 
						|
        }
 | 
						|
    </style>
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
    <div class="sub-container">
 | 
						|
        <table class="report-header">
 | 
						|
            <tr>
 | 
						|
                <td>
 | 
						|
                    <p class="heading-text">
 | 
						|
                        {{ $company->name }}
 | 
						|
                    </p>
 | 
						|
                </td>
 | 
						|
                <td>
 | 
						|
                    <p class="heading-date-range">
 | 
						|
                        {{ $from_date }} - {{ $to_date }}
 | 
						|
                    </p>
 | 
						|
                </td>
 | 
						|
            </tr>
 | 
						|
            <tr>
 | 
						|
                <td colspan="2">
 | 
						|
                    <p class="sub-heading-text">TAX REPORT</p>
 | 
						|
                </td>
 | 
						|
            </tr>
 | 
						|
        </table>
 | 
						|
        <p class="tax-types-title">Tax Types</p>
 | 
						|
        <div class="tax-table-container">
 | 
						|
            <table class="tax-table">
 | 
						|
                @foreach ($taxTypes as $tax)
 | 
						|
                    <tr>
 | 
						|
                        <td>
 | 
						|
                            <p class="tax-title">
 | 
						|
                                {{ $tax->taxType->name }}
 | 
						|
                            </p>
 | 
						|
                        </td>
 | 
						|
                        <td>
 | 
						|
                            <p class="tax-amount">
 | 
						|
                                {!! format_money_pdf($tax->total_tax_amount) !!}
 | 
						|
                            </p>
 | 
						|
                        </td>
 | 
						|
                    </tr>
 | 
						|
                @endforeach
 | 
						|
 | 
						|
            </table>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
 | 
						|
    <table class="tax-total-table">
 | 
						|
        <tr>
 | 
						|
            <td class="tax-total-cell">
 | 
						|
                <p class="tax-total">
 | 
						|
                    {!! format_money_pdf($totalTaxAmount) !!}
 | 
						|
                </p>
 | 
						|
            </td>
 | 
						|
        </tr>
 | 
						|
    </table>
 | 
						|
    <table class="report-footer">
 | 
						|
        <tr>
 | 
						|
            <td>
 | 
						|
                <p class="report-footer-label">TOTAL TAX</p>
 | 
						|
            </td>
 | 
						|
            <td>
 | 
						|
                <p class="report-footer-value">
 | 
						|
                    {!! format_money_pdf($totalTaxAmount) !!}
 | 
						|
                </p>
 | 
						|
            </td>
 | 
						|
        </tr>
 | 
						|
    </table>
 | 
						|
</body>
 | 
						|
</html>
 |