mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-03 22:13:18 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			447 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			447 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<html>
 | 
						|
<head>
 | 
						|
    <title>Invoice</title>
 | 
						|
    {{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
 | 
						|
    <style type="text/css">
 | 
						|
        body {
 | 
						|
            font-family: 'Roboto', sans-serif;
 | 
						|
        }
 | 
						|
 | 
						|
        html {
 | 
						|
            margin: 0px;
 | 
						|
            padding: 0px;
 | 
						|
        }
 | 
						|
        table {
 | 
						|
            border-collapse: collapse;
 | 
						|
        }
 | 
						|
 | 
						|
        .header-left {
 | 
						|
            padding-top: 45px;
 | 
						|
            padding-bottom: 45px;
 | 
						|
            padding-left: 30px;
 | 
						|
            display:inline-block;
 | 
						|
            width:30%;
 | 
						|
        }
 | 
						|
        @page {
 | 
						|
            margin-top: 60px !important;
 | 
						|
        }
 | 
						|
        .header-table {
 | 
						|
            background: #817AE3;
 | 
						|
            position: absolute;
 | 
						|
            width: 100%;
 | 
						|
            height: 141px;
 | 
						|
            left: 0px;
 | 
						|
            top: -60px;
 | 
						|
        }
 | 
						|
        .header-logo {
 | 
						|
            position: absolute;
 | 
						|
            height: 50px;
 | 
						|
            text-transform: capitalize;
 | 
						|
            color: #fff;
 | 
						|
        }
 | 
						|
        .header-right {
 | 
						|
            display:inline-block;
 | 
						|
            width:35%;
 | 
						|
            float:right;
 | 
						|
            padding: 20px 30px 20px 0px;
 | 
						|
            text-align: right;
 | 
						|
            color:white;
 | 
						|
 | 
						|
        }
 | 
						|
        .inv-flex{
 | 
						|
            display:flex;
 | 
						|
        }
 | 
						|
        .inv-data{
 | 
						|
            text-align:right;
 | 
						|
            margin-right:120px;
 | 
						|
        }
 | 
						|
        .inv-value{
 | 
						|
            text-align:left;
 | 
						|
            margin-left:160px;
 | 
						|
        }
 | 
						|
        .header {
 | 
						|
            font-family: 'Roboto', sans-serif;
 | 
						|
            font-size: 20px;
 | 
						|
            color: rgba(0, 0, 0, 0.7);
 | 
						|
        }
 | 
						|
 | 
						|
        .TextColor1 {
 | 
						|
            font-family: 'Roboto', sans-serif;
 | 
						|
            font-size: 16px;
 | 
						|
            color: rgba(0, 0, 0, 0.5);
 | 
						|
        }
 | 
						|
 | 
						|
        .wrapper {
 | 
						|
           display: block;
 | 
						|
           margin-top: 60px;
 | 
						|
           padding-bottom: 20px;
 | 
						|
        }
 | 
						|
 | 
						|
        .address {
 | 
						|
            display: inline-block;
 | 
						|
        }
 | 
						|
        .company {
 | 
						|
            padding: 0 0 0 30px;
 | 
						|
            display: inline;
 | 
						|
            float:left;
 | 
						|
            width:30%;
 | 
						|
        }
 | 
						|
 | 
						|
        .company h1 {
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: bold;
 | 
						|
            font-size: 15px;
 | 
						|
            line-height: 22px;
 | 
						|
            letter-spacing: 0.05em;
 | 
						|
            margin-bottom: 0;
 | 
						|
        }
 | 
						|
 | 
						|
        .company-add {
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 10px;
 | 
						|
            line-height: 15px;
 | 
						|
            color: #595959;
 | 
						|
            margin-top: 0px;
 | 
						|
        }
 | 
						|
 | 
						|
        /* -------------------------- */
 | 
						|
        /* billing style */
 | 
						|
        .bill-address-container {
 | 
						|
            display: inline;
 | 
						|
            position: absolute;
 | 
						|
            float:right;
 | 
						|
            padding: 0 40px 0 0;
 | 
						|
        }
 | 
						|
 | 
						|
        .bill-to {
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 12px;
 | 
						|
            line-height: 18px;
 | 
						|
            padding: 0px;
 | 
						|
            margin-bottom: 0px;
 | 
						|
        }
 | 
						|
 | 
						|
        .bill-user-name {
 | 
						|
            max-width: 250px
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 15px;
 | 
						|
            line-height: 22px;
 | 
						|
            padding: 0px;
 | 
						|
            margin-top: 0px;
 | 
						|
            margin-bottom: 0px;
 | 
						|
        }
 | 
						|
 | 
						|
        .bill-user-address {
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 10px;
 | 
						|
            line-height: 15px;
 | 
						|
            color: #595959;
 | 
						|
            padding: 0px;
 | 
						|
            margin: 0px;
 | 
						|
            width: 170px;
 | 
						|
        }
 | 
						|
        .bill-user-phone {
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 10px;
 | 
						|
            line-height: 15px;
 | 
						|
            color: #595959;
 | 
						|
            padding: 0px;
 | 
						|
            margin: 0px;
 | 
						|
        }
 | 
						|
 | 
						|
        /* -------------------------- */
 | 
						|
        /* shipping style */
 | 
						|
        .ship-address-container {
 | 
						|
            display: inline;
 | 
						|
            position: absolute;
 | 
						|
            float:right;
 | 
						|
            padding: 0 30px 0 0;
 | 
						|
        }
 | 
						|
 | 
						|
        .ship-to {
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 12px;
 | 
						|
            line-height: 18px;
 | 
						|
            padding: 0px;
 | 
						|
            margin-bottom: 0px;
 | 
						|
        }
 | 
						|
 | 
						|
        .ship-user-name {
 | 
						|
            max-width: 250px
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 15px;
 | 
						|
            line-height: 22px;
 | 
						|
            padding: 0px;
 | 
						|
            margin-top: 0px;
 | 
						|
            margin-bottom: 0px;
 | 
						|
        }
 | 
						|
 | 
						|
        .ship-user-address {
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 10px;
 | 
						|
            line-height: 15px;
 | 
						|
            color: #595959;
 | 
						|
            padding: 0px;
 | 
						|
            margin: 0px;
 | 
						|
            width: 170px;
 | 
						|
        }
 | 
						|
 | 
						|
        .ship-user-phone {
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 10px;
 | 
						|
            line-height: 15px;
 | 
						|
            color: #595959;
 | 
						|
            padding: 0px;
 | 
						|
            margin: 0px;
 | 
						|
        }
 | 
						|
 | 
						|
        .job-add {
 | 
						|
            display: inline;
 | 
						|
            float: right;
 | 
						|
            width:40%;
 | 
						|
        }
 | 
						|
 | 
						|
        .amount-due {
 | 
						|
            background-color: #f2f2f2;
 | 
						|
        }
 | 
						|
 | 
						|
        .textRight {
 | 
						|
            text-align: right;
 | 
						|
        }
 | 
						|
 | 
						|
        .textLeft {
 | 
						|
            text-align: left;
 | 
						|
        }
 | 
						|
 | 
						|
        .textStyle1 {
 | 
						|
            font-size: 12;
 | 
						|
            font-weight: bold;
 | 
						|
            line-height:22px;
 | 
						|
            color: rgba(0, 0, 0, 0.8);
 | 
						|
        }
 | 
						|
 | 
						|
        .textStyle2 {
 | 
						|
            font-size: 12;
 | 
						|
            line-height:22px;
 | 
						|
            color: rgba(0, 0, 0, 0.7);
 | 
						|
        }
 | 
						|
 | 
						|
        .main-table-header td {
 | 
						|
            padding: 5px;
 | 
						|
            padding-bottom: 10px;
 | 
						|
        }
 | 
						|
 | 
						|
        .main-table-header {
 | 
						|
            border-bottom: 1px solid red;
 | 
						|
        }
 | 
						|
 | 
						|
        .table2 {
 | 
						|
            margin-top: 200px;
 | 
						|
            border-bottom: 1px solid #EAF1FB;
 | 
						|
            padding: 0px 30px 0 30px;
 | 
						|
            page-break-before: avoid;
 | 
						|
            page-break-after: auto;
 | 
						|
        }
 | 
						|
 | 
						|
        .table2 hr {
 | 
						|
            height:0.1px;
 | 
						|
        }
 | 
						|
 | 
						|
        .ItemTableHeader {
 | 
						|
            font-size: 13.5;
 | 
						|
            text-align: center;
 | 
						|
            color: rgba(0, 0, 0, 0.85);
 | 
						|
            padding: 5px;
 | 
						|
        }
 | 
						|
 | 
						|
        tr.main-table-header th {
 | 
						|
            border-bottom: 0.620315px solid #E8E8E8;
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 12px;
 | 
						|
            line-height: 18px;
 | 
						|
        }
 | 
						|
 | 
						|
        tr.item-details td {
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 12px;
 | 
						|
            line-height: 18px;
 | 
						|
        }
 | 
						|
 | 
						|
        .items {
 | 
						|
            font-size: 13;
 | 
						|
            color: rgba(0, 0, 0, 0.6);
 | 
						|
            text-align: center;
 | 
						|
            padding: 5px;
 | 
						|
        }
 | 
						|
 | 
						|
        .note-header {
 | 
						|
            font-size: 13;
 | 
						|
            color: rgba(0, 0, 0, 0.6);
 | 
						|
        }
 | 
						|
 | 
						|
        .note-text {
 | 
						|
            font-size: 10;
 | 
						|
            color: rgba(0, 0, 0, 0.6);
 | 
						|
        }
 | 
						|
 | 
						|
        .padd8 {
 | 
						|
            padding-top: 8px;
 | 
						|
            padding-bottom: 8px;
 | 
						|
        }
 | 
						|
 | 
						|
        .padd2 {
 | 
						|
            padding-top: 2px;
 | 
						|
            padding-bottom: 2px;
 | 
						|
        }
 | 
						|
 | 
						|
        .table3 {
 | 
						|
            border: 1px solid #EAF1FB;
 | 
						|
            border-top: none;
 | 
						|
            box-sizing: border-box;
 | 
						|
            width: 630px;
 | 
						|
            page-break-inside: avoid;
 | 
						|
            page-break-before: auto;
 | 
						|
            page-break-after: auto;
 | 
						|
        }
 | 
						|
 | 
						|
        .text-per-item-table3 {
 | 
						|
            border: 1px solid #EAF1FB;
 | 
						|
            border-top: none;
 | 
						|
            padding-right: 30px;
 | 
						|
            box-sizing: border-box;
 | 
						|
            width: 260px;
 | 
						|
            /* height: 100px; */
 | 
						|
            position: absolute;
 | 
						|
            right: -25;
 | 
						|
        }
 | 
						|
 | 
						|
        .inv-item {
 | 
						|
            border-color: #d9d9d9;
 | 
						|
        }
 | 
						|
 | 
						|
        .no-border {
 | 
						|
            border: none;
 | 
						|
        }
 | 
						|
 | 
						|
        .desc {
 | 
						|
            font-weight: 100;
 | 
						|
            text-align: justify;
 | 
						|
            font-size: 10px;
 | 
						|
            margin-bottom: 15px;
 | 
						|
            margin-top:7px;
 | 
						|
            color:rgba(0, 0, 0, 0.85);
 | 
						|
        }
 | 
						|
 | 
						|
        .company-details{
 | 
						|
            text-align: center;
 | 
						|
            width: 40%;
 | 
						|
        }
 | 
						|
 | 
						|
        .company-details h1 {
 | 
						|
            margin:0;
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: 500;
 | 
						|
            font-size: 24px;
 | 
						|
            line-height: 36px;
 | 
						|
            text-align: right;
 | 
						|
        }
 | 
						|
 | 
						|
        .company-details h4 {
 | 
						|
            margin:0;
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 10px;
 | 
						|
            line-height: 15px;
 | 
						|
            text-align: right;
 | 
						|
        }
 | 
						|
 | 
						|
        .company-details h3 {
 | 
						|
             margin-bottom:1px;
 | 
						|
             margin-top:0;
 | 
						|
        }
 | 
						|
 | 
						|
        .notes {
 | 
						|
            font-family: 'Roboto', sans-serif;
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: 300;
 | 
						|
            font-size: 12px;
 | 
						|
            color: #595959;
 | 
						|
            margin-top: 15px;
 | 
						|
            margin-left: 30px;
 | 
						|
            width: 442px;
 | 
						|
            text-align: left;
 | 
						|
            page-break-inside: avoid;
 | 
						|
        }
 | 
						|
 | 
						|
        .notes-label {
 | 
						|
            font-family: 'Roboto', sans-serif;
 | 
						|
            font-style: normal;
 | 
						|
            font-weight: normal;
 | 
						|
            font-size: 15px;
 | 
						|
            line-height: 22px;
 | 
						|
            letter-spacing: 0.05em;
 | 
						|
            color: #040405;
 | 
						|
            width: 108px;
 | 
						|
            height: 19.87px;
 | 
						|
            padding-bottom: 10px;
 | 
						|
        }
 | 
						|
 | 
						|
    </style>
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
    <div class="header-table">
 | 
						|
        <table width="100%">
 | 
						|
            <tr>
 | 
						|
                @if($logo)
 | 
						|
                    <td width="60%" class="header-left">
 | 
						|
                        <img class="header-logo" src="{{ $logo }}" alt="Company Logo">
 | 
						|
                @else
 | 
						|
                    <td width="60%" class="header-left" style="padding-top: 0px;">
 | 
						|
                        @if($invoice->user->company)
 | 
						|
                            <h1 class="header-logo"> {{$invoice->user->company->name}} </h1>
 | 
						|
                        @endif
 | 
						|
                @endif
 | 
						|
                </td>
 | 
						|
                <td width="40%" class="header-right company-details">
 | 
						|
                    <h1>Invoice</h1>
 | 
						|
                    <h4>{{$invoice->invoice_number}}</h4>
 | 
						|
                    <h4>{{$invoice->formattedInvoiceDate}}</h4>
 | 
						|
                </td>
 | 
						|
            </tr>
 | 
						|
        </table>
 | 
						|
    </div>
 | 
						|
    <hr>
 | 
						|
    <div class="wrapper">
 | 
						|
        <div class="address">
 | 
						|
            <div class="company">
 | 
						|
                @include('app.pdf.invoice.partials.company-address')
 | 
						|
            </div>
 | 
						|
            <div class="ship-address-container">
 | 
						|
                @include('app.pdf.invoice.partials.shipping-address')
 | 
						|
            </div>
 | 
						|
            @if($invoice->user->shippingaddress->name || $invoice->user->shippingaddress->address_street_1 || $invoice->user->shippingaddress->address_street_2 || $invoice->user->shippingaddress->country || $invoice->user->shippingaddress->state || $invoice->user->shippingaddress->city || $invoice->user->shippingaddress->zip || $invoice->user->phone)
 | 
						|
                <div class="bill-address-container">
 | 
						|
            @else
 | 
						|
                <div class="bill-address-container" style="float:right;padding-right:0px;">
 | 
						|
            @endif
 | 
						|
                @include('app.pdf.invoice.partials.billing-address')
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
            @include('app.pdf.invoice.partials.table')
 | 
						|
        @include('app.pdf.invoice.partials.notes')
 | 
						|
    </div>
 | 
						|
</body>
 | 
						|
</html>
 |