{{-- The Tenancy Summary / Report laid out as DOC/TNC/2 prints it: masthead with the logo and document block, the three submission boxes with the checklist beside them, the premises and term, the monthly payment grid, the deposits and non-refundable expenses, the remarks and notes, and the three sign-offs. Shared by the browser print view and the dompdf export; $forPdf switches to a font dompdf embeds and trims the sizes to hold one landscape page. --}} @php use App\Models\TenancySummary; use App\Support\Format; $forPdf = $forPdf ?? false; $columns = TenancySummary::defaultColumnLabels(); $variance = TenancySummary::VARIANCE_COLUMN; $logo = $forPdf ? public_path('img/gintell-logo.jpg') : asset('img/gintell-logo.jpg'); $logoExists = is_file(public_path('img/gintell-logo.jpg')); $tick = fn (bool $on) => $on ? '✓' : ' '; $date = fn ($value) => $value ? \Illuminate\Support\Carbon::parse($value)->format('d/m/Y') : ''; $amount = fn (?string $value) => $value === null ? '' : Format::money($value, 2, ''); $rate = fn (?string $value) => $value === null ? '' : Format::money($value, 2, ''); @endphp Tenancy Summary / Report (TSF) — {{ $proposal->outlet }} @unless ($forPdf)
Back to the proposal
@endunless {{-- ---------------------------------------------------------- --}} {{-- Masthead --}} {{-- ---------------------------------------------------------- --}}
Rev : 0 — DOC / TNC / 2
GINTELL (M) SDN. BHD. 386685-U
TENANCY SUMMARY / REPORT
EFF Date : 1 Aug 2017
{{-- ---------------------------------------------------------- --}} {{-- What this submission is, and the checklist beside it --}} {{-- ---------------------------------------------------------- --}}
@foreach (TenancySummary::typeOptions() as $key => $text) @endforeach
{!! $tick($summary->submission_type === $key) !!} {{ strtoupper($text) }}
Nature of renewal / revision / termination : {{ $summary->nature_of_change }}
Letter of Offer Received Date : {{ $date($summary->letter_of_offer_received_on) }} Letter of Offer Sent Out Date : {{ $date($summary->letter_of_offer_sent_on) }}
Agreement Received Date : {{ $date($summary->agreement_received_on) }} Stamped Agreement Rec'd Date : {{ $date($summary->stamped_agreement_received_on) }}
@foreach (TenancySummary::submissionItems() as $item => $text) @endforeach
Submission ✓ Date
{{ $text }} {!! $tick($summary->submitted($item)) !!} {{ $date($summary->submittedOn($item)) }}
{{-- ---------------------------------------------------------- --}} {{-- Premises and term --}} {{-- ---------------------------------------------------------- --}}
SHOWROOM:{{ $summary->showroom }}
LANDLORD:{{ $summary->landlord }}
PREMISES:{{ $summary->premises }}
CONTACT PERSON:{{ $summary->contact_person }}
TENANCY COMMENCEMENT DATE:{{ $date($summary->commencement_date) }}
TENANCY EXPIRY DATE:{{ $date($summary->expiry_date) }}
BUSINESS COMMENCEMENT DATE:{{ $date($summary->business_commencement_date) }}
PUBLIC LIABILITY INSURANCE:{{ $summary->public_liability_insurance }}
Area (sqf) — est.: {{ $summary->area_estimated_sqft ? Format::money($summary->area_estimated_sqft) : '' }}
Area (sqf) — actual: {{ $summary->area_actual_sqft ? Format::money($summary->area_actual_sqft) : '' }}
CONTACT NO.:{{ $summary->contact_no }}
Tenure (years):{{ $summary->tenure }}
Renewal Notice:{{ $summary->renewal_notice }}
PAYABLE BY:{{ $summary->payable_by }}
Late Payment Interest:{{ $summary->late_payment_interest }}
{{-- ---------------------------------------------------------- --}} {{-- Monthly payment --}} {{-- ---------------------------------------------------------- --}} @foreach ($columns as $column => $default) @endforeach @foreach ($columns as $column => $default) @if ($column === $variance) @endif @endforeach @foreach (TenancySummary::monthlyRows() as $row => $text) @foreach ($columns as $column => $default) @if ($column === $variance) @endif @endforeach @endforeach
MONTHLY PAYMENT{{ $summary->columnLabel($column) }}
Per sf (RM)(%)
@if ($row === 'tax') {{ $summary->tax_percent !== null ? rtrim(rtrim((string) $summary->tax_percent, '0'), '.') : '6' }} % GST / SST @else {{ strtoupper($text) }} @endif {{ $rate($summary->monthly($row, $column, 'rate')) }} {{ $amount($summary->monthly($row, $column, 'amount')) }}{{ $summary->monthly($row, $column, 'percent') }}
{{ $summary->turnover_rent_basis ? TenancySummary::turnoverBasisOptions()[$summary->turnover_rent_basis] : 'Or / Higher of / Plus additional of' }} — {{ $summary->turnover_rent_percent !== null ? rtrim(rtrim((string) $summary->turnover_rent_percent, '0'), '.') : '____' }} % on Gross Sales Turnover (Base Rent)
{{-- ---------------------------------------------------------- --}} {{-- Deposits and non-refundable expenses --}} {{-- ---------------------------------------------------------- --}}
@foreach ($columns as $column => $default) @endforeach @foreach (TenancySummary::depositInputRows() as $row => $text) @foreach ($columns as $column => $default) @endforeach @endforeach @foreach ($columns as $column => $default) @endforeach
DEPOSIT (REFUNDABLE){{ $summary->columnLabel($column) }}
{{ strtoupper($text) }}{{ $amount($summary->deposit($row, $column)) }}
TOTAL REFUNDABLE{{ $amount($summary->deposit('total', $column)) }}
@foreach ($columns as $column => $default) @endforeach @foreach (TenancySummary::expenseInputRows() as $row => $text) @foreach ($columns as $column => $default) @endforeach @endforeach @foreach ($columns as $column => $default) @endforeach @foreach ($columns as $column => $default) @endforeach
NON-REFUNDABLE EXPENSES{{ $summary->columnLabel($column) }}
{{ strtoupper($text) }}{{ $amount($summary->expense($row, $column)) }}
TOTAL NON-REFUNDABLE{{ $amount($summary->expense('total', $column)) }}
TOTAL PAYABLE{{ $amount($summary->expense('total_payable', $column)) }}
{{-- ---------------------------------------------------------- --}} {{-- Remarks and notes --}} {{-- ---------------------------------------------------------- --}}
REMARKS: {{ $summary->remarks }}
Note 1{{ $summary->note_1 }}
Note 2{{ $summary->note_2 }}
Note 3{{ $summary->note_3 }}
{{-- ---------------------------------------------------------- --}} {{-- Sign-off --}} {{-- ---------------------------------------------------------- --}}
Prepared by Checked by Approved by
Name: {{ $summary->prepared_by_name }} Name: {{ $summary->checked_by_name }} Name: {{ $summary->approved_by_name ?: TenancySummary::DEFAULT_APPROVER }}
Date: {{ $date($summary->prepared_on) }} Date: {{ $date($summary->checked_on) }} Date: {{ $date($summary->approved_on) }}