@extends('layouts/contentLayoutMaster') @section('title', 'Repair & Maintenance Plans') @section('vendor-style') @endsection @section('page-style') @endsection @section('content') {{-- Add Dispatch Point --}} View Visit Plan @if($closed == false) @csrf @method('PUT') _id }} name="visit_plan_id" hidden> Close Plan @endif @if ($message = Session::get('success')) {{ $message }} @endif @if ($errorMessage = Session::get('errorMessage')) {{ $errorMessage }} @endif {{-- @csrf @method('PUT') --}} Visit Plan : {{$visitPlan->code ? $visitPlan->code : 'N/A'}} Plan Name : {{$visitPlan->name ? $visitPlan->name : 'N/A'}} Assigned EST : {{$visitPlan->user ? $visitPlan->user->name . ' ('.$visitPlan->user->user_name ? $visitPlan->user->user_name : "".')' : 'N/A'}} Status : {{ $visitPlan->status == 0 ? "Pending" : "Completed" }} Created By : {{$visitPlan->createdBy ? $visitPlan->createdBy->name : 'N/A'}} Date : {{$visitPlan->created_at ? $visitPlan->created_at : 'N/A'}} {{-- Visit Flow Diagram --}} @foreach ( $visitPlan->locations as $location ) {{-- @switch($location->type) @case('user') User @break @case('plant') Plant @break @case('building') Plant Building @break @case('plant_mcc') Plant CP @break @case('ao') Area Office @break @case('dp') Dispatch Point @break @case('mcc') Collection Center @break @case('ao_building') AO Building @break @default N/A @endswitch --}} View {{ $location->name }} {{$location->date}} @endforeach {{-- Create Visit Plan --}} {{-- --}} @endsection @section('vendor-script') @endsection @section('page-script') {{-- --}} @endsection