@extends('layouts.app') @section('title', session('company_code') . ' Elite System') @section('header') Dashboard @endsection @section('body')

Elite System Incident Report

{{ $report->ir_number }}
Branch
{{ $report->branch_name }}
Incident Date/Time
{{ \Carbon\Carbon::parse($report->incident_datetime)->toDayDateTimeString() }}
Status
@if ($report->status == "pending") @elseif ($report->status == "approved") @elseif ($report->status == "for endorsement") @elseif ($report->status == "endorsed") @elseif ($report->status == "accepted") @elseif ($report->status == "ongoing") @elseif ($report->status == "accomplished") @elseif ($report->status == "acknowledged") @elseif ($report->status == "declined") @elseif ($report->status == "not applicable") @elseif ($report->status == "cancelled") @endif
Incident Subject
{{ $report->incident_subject }}
Incident Description
{!! $report->incident_description !!}
Requested By
{{ strtoupper($report->requested_name) }} - {{ \Carbon\Carbon::parse($report->requested_at)->toDayDateTimeString() }}
Approved By
{{ strtoupper($report->approved_name) }} - {{ \Carbon\Carbon::parse($report->approved_at)->toDayDateTimeString() }}
Incident Remarks
{!! $report->incident_remarks !!}

Proposed Solution By
@if ( $report->status == "for endorsement" || $report->status == "endorsed" || $report->status == "accepted" || $report->status == "ongoing" || $report->status == "accomplished" || $report->status == "acknowledged" || $report->status == "not applicable" ) @if ($report->proposed_name != NULL) {{ strtoupper($report->proposed_name) }} - {{ \Carbon\Carbon::parse($report->proposed_at)->toDayDateTimeString() }} @endif @else Status not yet proposed @endif
Proposed Solution
{!! $report->proposed_solution !!}
Endorsed By
@if ( $report->status == "endorsed" || $report->status == "accepted" || $report->status == "ongoing" || $report->status == "accomplished" || $report->status == "acknowledged" ) @if ($report->endorsed_name != NULL) {{ strtoupper($report->endorsed_name) }} - {{ \Carbon\Carbon::parse($report->endorsed_at)->toDayDateTimeString() }} @endif @else Status not yet endorsed @endif
Accepted By
@if ( $report->status == "accepted" || $report->status == "ongoing" || $report->status == "accomplished" || $report->status == "acknowledged" ) @if ($report->accepted_name != NULL) {{ strtoupper($report->accepted_name) }} - {{ \Carbon\Carbon::parse($report->accepted_at)->toDayDateTimeString() }} @endif @else Status not yet accepted @endif

@if ( $report->status == "ongoing" || $report->status == "accomplished" || $report->status == "acknowledged" ) @if ($report->took_action_name != NULL) {{ strtoupper($report->took_action_name) }} - {{ \Carbon\Carbon::parse($report->took_action_at)->toDayDateTimeString() }} @endif @else Status not yet ongoing @endif
@if ( $report->status == "accomplished" || $report->status == "acknowledged" ) @if ($report->accomplished_name != NULL) {{ strtoupper($report->accomplished_name) }} - {{ \Carbon\Carbon::parse($report->accomplished_at)->toDayDateTimeString() }} @endif @else Status not yet accomplished @endif
@if ($report->status == "acknowledged") @if ($report->acknowledged_name != NULL) {{ strtoupper($report->acknowledged_name) }} - {{ \Carbon\Carbon::parse($report->acknowledged_at)->toDayDateTimeString() }} @endif @else Status not yet acknowledged @endif
@if ($report->status == "cancelled")
Cancelled By
{{ strtoupper($report->cancelled_name) }} - {{ \Carbon\Carbon::parse($report->cancelled_at)->toDayDateTimeString() }}
{!! $report->cancelled_reason !!}
@endif @if ($report->status == "not applicable")
Not Applicable By
{{ strtoupper($report->not_applicable_name) }} - {{ \Carbon\Carbon::parse($report->not_applicable_at)->toDayDateTimeString() }}
Not Applicable Reason
{!! $report->not_applicable_reason !!}
@endif

@foreach ($report_history as $history) @endforeach
BRANCH SUBJECT DESCRIPTION DATE UPDATED UPDATED BY STATUS
{{ str_replace(' Branch', '', $history->branch_name) }} @if (strlen($history->incident_subject) > 40) {!! substr($history->incident_subject, '0', '40') . '...' !!} @else {!! $history->incident_subject !!} @endif @if (strlen($history->incident_description) > 80) {!! substr($history->incident_description, '0', '80') . '...' !!} @else {!! $history->incident_description !!} @endif {{ \Carbon\Carbon::parse($history->updated_at)->format('M d, Y h:i A') }} {{ strtoupper($history->updated_name) }} @if ($history->status == "pending") @elseif ($history->status == "approved") @elseif ($history->status == "for endorsement") @elseif ($history->status == "endorsed") @elseif ($history->status == "accepted") @elseif ($history->status == "ongoing") @elseif ($history->status == "accomplished") @elseif ($history->status == "acknowledged") @elseif ($history->status == "declined") @elseif ($history->status == "not applicable") @elseif ($history->status == "cancelled") @endif
@endsection @section('scripts') @endsection