@section('title', 'Contract - Overview') @push('styles') @endpush @section('page-style') @endsection @include('admin.pages.contracts.header', ['tab' => 'overview'])
@if($contract->value != ($contract_total_cost = $contract->phasesCostIncludingWHTAndRC()))
@endif {{-- Alert Contract expired --}} @if(count($pendingDocs) > 0)
@endif @if ($contract->have_retention)
@endif
{{-- Summary Invoices --}}
Summary Invoices
Summary Invoices Report

Total Invoiced
@cMoney(($regular_invoices_data['total_invoiced'] + $tax_authority_invoices_data['total_invoiced']) ?? 0, $contract->currency ?? 'SAR', true)
Regular Invoiced
@cMoney($regular_invoices_data['total_invoiced'] ?? 0, $contract->currency ?? 'SAR', true)
Tax Authority Invoices
@cMoney($tax_authority_invoices_data['total_invoiced'] ?? 0, $contract->currency ?? 'SAR', true)
Total Paid
@cMoney(($regular_invoices_data['total_paid'] + $tax_authority_invoices_data['total_paid']) ?? 0, $contract->currency ?? 'SAR', true)
{{-- Regular Invoices --}}
Regular Invoices
Regular Invoices Report

Total Invoiced
@cMoney($regular_invoices_data['total_invoiced'] ?? 0, $contract->currency ?? 'SAR', true)
Total Paid
@cMoney($regular_invoices_data['total_paid'] ?? 0, $contract->currency ?? 'SAR', true)
Total Retention
@cMoney($regular_invoices_data['total_retention'] ?? 0, $contract->currency ?? 'SAR', true)
Retention Released
@cMoney($regular_invoices_data['released_retention'] ?? 0, $contract->currency ?? 'SAR', true)
{{--
Retention Withheld
@cMoney($regular_invoices_data['retention_withheld'] ?? 0, $contract->currency ?? 'SAR', true)
--}}
{{--
--}}
{{-- DownPayment Invoices --}}
Down Payment
Down Payment Reports

Total Invoiced
@cMoney($downpayment_invoices_data['total_invoiced'] ?? 0, $contract->currency ?? 'SAR', true)
Total Paid
@cMoney($downpayment_invoices_data['total_paid'] ?? 0, $contract->currency ?? 'SAR', true)
Settled Amount
@cMoney($downpayment_invoices_data['settled_amount'] ?? 0, $contract->currency ?? 'SAR', true)
Deductible Remaining
@cMoney($downpayment_invoices_data['remaining_deductible'] ?? 0, $contract->currency ?? 'SAR', true)
{{--
--}}
{{-- Tax Authority Invoices --}}
Tax Authority Invoices
Tax Authority Invoices Reports

Total Invoiced
@cMoney($tax_authority_invoices_data['total_invoiced'] ?? 0, $contract->currency ?? 'SAR', true)
Total Paid
@cMoney($tax_authority_invoices_data['total_paid'] ?? 0, $contract->currency ?? 'SAR', true)
Total WHT
@cMoney($tax_authority_invoices_data['total_wht'] ?? 0, $contract->currency ?? 'SAR', true)
Total RC
@cMoney($tax_authority_invoices_data['total_rc'] ?? 0, $contract->currency ?? 'SAR', true)
{{--
--}}
Payment Plan Flow
About
  • Subject: {{$contract->subject}}
  • @if ($contract->assignable_id != null && $contract->assignable_type != null)
  • Assigned To ({{explode('\\', $contract->assignable_type)[2]}}): {{$contract->assignable->name ?? $contract->assignable->first_name .' '. $contract->assignable->last_name}}
  • @endif @if ($contract->project_id)
  • Project: {{$contract->project->name ?? ''}}
  • @endif
  • Status: {{$contract->status}}
  • Value: {{$contract->printable_value}}
  • Start Date: {{formatDateTime($contract->start_date)}}
  • End Date: {{formatDateTime($contract->end_date)}}
  • Type: {{$contract->type->name ?? ''}}
  • Refrence ID: {{$contract->refrence_id}}
  • Description: {{$contract->description}}
{{-- Contract Phases By year --}}
{{__('Contracts Phases By Year')}}
Contracts Phases By Year
{{-- Contract Phases Amount By year --}}
{{__('Contracts Phases Amount By Year')}}
Contracts Phases Amount By Year
{{-- Contract Phases By Month --}}
{{--
{{__('Contract Phases By Month')}}
{{__('Contract Phases By Month')}} --}}
{{__('Annual Distribution of Contract Phases')}}
{{__('Planned According to Phases Due Dates')}} {{-- total --}}
Total:
{{-- select year filter --}}
{{-- Contract Phases By Month --}}
{{-- Invoices By Month --}}
{{__('Invoices Amount')}}
{{__('Invoices by due date')}} {{-- total --}}
Total:
{{-- select year filter --}}
{{-- Invoices By Month --}} {{-- Invoice payments By Month --}}
{{__('Invoice Payments')}}
{{__('Invoice payments by payment date')}} {{-- total --}}
Total:
{{-- select year filter --}}
{{-- End Invoice payments By Month --}}
{{-- Invoice payments By Year --}}
{{__('Invoice Payments Yearly')}}
{{__('Invoice payments by payment date')}} {{-- total --}}
Total:
{{-- End Invoice payments By Year --}}
Events summary
Paused
{{$summary->where('event_type', 'Paused')->sum('total')}}
Terminated
{{$summary->where('event_type', 'Terminated')->sum('total')}}
{{$summary->whereIn('event_type', ['Paused', 'Terminated'])->sum('total')}}
{{--
{{$dataTable->table()}}
--}}
@push('scripts') @endpush