whoami7 - Manager
:
/
home
/
qbizpnmr
/
arif.umairtax.com
/
resources
/
views
/
templates
/
reports
/
Upload File:
files >> /home/qbizpnmr/arif.umairtax.com/resources/views/templates/reports/project_report.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Project Report</title> <style> @page { size: landscape; margin: 10mm 10mm; } body { font-family: 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #333; margin: 0px; } .report-header { border-bottom: 2px solid #2c3e50; padding-bottom: 20px; margin-bottom: 30px; } .report-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2c3e50; padding-bottom: 10mm; margin-bottom: 5mm; } .header-left { flex: 1; } .company-logo { max-height: 50px; width: auto; object-fit: contain; } .report-title { color: #2c3e50; font-size: 14pt; font-weight: 600; margin: 0; } .report-meta { color: #666; margin-top: 2mm; font-size: 8pt; display: flex; flex-direction: column; /* Stack items vertically */ gap: 1mm; /* Space between items */ } @media print { .company-logo { print-color-adjust: exact; -webkit-print-color-adjust: exact; } } .report-title { color: #2c3e50; font-size: 24px; font-weight: 600; margin: 0; } .table-container { margin-top: 30px; overflow-x: auto; } table { width: 100%; border-collapse: collapse; background: white; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } th { background: #34495e; color: white; padding: 6px; text-align: left; } td { padding: 6px; border-bottom: 1px solid #eee; text-align: left; } td li { text-align: left; } tr { page-break-inside: avoid; break-inside: avoid; } /* Optional: Keep header with first few rows */ thead { display: table-header-group; } /* Optional: Keep footer at bottom */ tfoot { display: table-footer-group; } /* Ensure tbody can break between rows */ tbody { page-break-inside: auto; } tr:hover { background: #f9f9f9; } .amount, .balance { text-align: center; font-family: monospace; } .status { padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; } .status-sent { background: #e8f5e9; color: #2e7d32; } .page-break { page-break-before: always; } </style> </head> <body> <ninja> {% if projects|e %} {% for project in projects %} <div class="page-break"> <h1>{{ project.name }}</h1> <h3>Due: {{ project.due_date }}</h3> <h6>{{ project.current_hours }} / {{ project.budgeted_hours }}: (Hours / Budgeted Hours @ {{ project.task_rate }}) - Report generated on {{ "now"|date('Y-m-d') }}</h6> {% if project.tasks is not empty %} <table> <thead> <tr> <th>{{ t('date') }}</th> <th>{{ t('description') }}</th> <th>{{ t('duration') }}</th> </tr> </thead> <tbody> {% for task in project.tasks %} {% for log in task.time_log%} <tr> <td>{{ log.start_date }}</td> <td> <div> <ul> <li>{{ log.description }}</li> <li>{{ task.user.name }}</li> </ul> </div> </td> <td>{{ log.duration|date('h:i:s')}}</td> </tr> {% endfor %} {% endfor %} </tbody> </table> {% endif %} {% if project.invoices %} <div style="text-align: center;"> <h2>{{ t('invoices') }}</h2> </div> <table> <thead> <tr> <th>{{ t('date')}}</th> <th>{{ t('invoice_number')}}</th> <th>{{ t('amount') }}</th> <th>{{ t('balance') }}</th> </tr> </thead> <tbody> {% set total_amount = 0 %} {% set total_balance = 0 %} {% for invoice in project.invoices %} <tr> <td>{{ invoice.date }}</td> <td>{{ invoice.number }}</td> <td>{{ invoice.amount }}</td> <td>{{ invoice.balance }}</td> </tr> {% set total_amount = total_amount + invoice.amount_raw %} {% set total_balance = total_balance + invoice.balance_raw %} {% endfor%} </tbody> <tfoot> <tr> <td></td> <td></td> <td>{{ total_amount|format_currency(currency_code) }}</td> <td>{{ total_balance|format_currency(currency_code) }}</td> </tr> </tfoot> </table> {% endif %} {% if project.expenses %} <div style="text-align: center;"> <h2>{{ t('expenses') }}</h2> </div> <table> <thead> <tr> <th>{{ t('date')}}</th> <th>{{ t('number')}}</th> <th>{{ t('amount') }}</th> </tr> </thead> <tbody> {% set total_expense_amount = 0 %} {% for expense in project.expenses %} <tr> <td>{{ expense.date }}</td> <td>{{ expense.number }}</td> <td>{{ expense.amount }}</td> </tr> {% set total_expense_amount = total_expense_amount + expense.amount_raw %} {% endfor%} </tbody> <tfoot> <tr> <td></td> <td></td> <td>{{ total_expense_amount|format_currency(currency_code) }}</td> </tr> </tfoot> </table> {% endif %} <table> <thead> <tr> <th>{{ t('summary') }}</th> <th>{{ t('amount') }}</th> </tr> </thead> <tbody> <tr> <td>{{ t('project_value') }}</td> <td>{{ (project.budgeted_hours * project.task_rate_raw)|format_currency(currency_code) }}</td> </tr> <tr> <td>{{ t('invoice_task_hours') }}</td> <td>{{ (project.current_hours * project.task_rate_raw)|format_currency(currency_code) }}</td> </tr> <tr> <td>{{ t('invoiced') }}</td> <td>{{ total_amount|format_currency(currency_code) }}</td> </tr> <tr> <td>{{ t('expenses') }}</td> <td>{{ total_expense_amount|format_currency(currency_code) }}</td> </tr> <tr> <td>{{ t('profit') }}</td> <td>{{ (total_amount - total_expense_amount)|format_currency(currency_code) }}</td> </tr> </tbody> </table> </div> {% endfor %} {% endif %} </ninja> </body> </html>
Copyright ©2021 || Defacer Indonesia