@extends('layouts.master') @section('mainContent')
@php $estimation = json_decode($history->history_data); if($estimation->estimate_type == 'fp') { $totalWeightSimple = array_sum(array_column($estimation->fp_task_data,'function_simple')); $totalWeightMedium = array_sum(array_column($estimation->fp_task_data,'function_medium')); $totalWeightComplex = array_sum(array_column($estimation->fp_task_data,'function_complex')); } @endphp
{{ $estimation->estimation_id }}

@if($estimation->estimate_type == 'sp') Story Point(SP) @endif @if($estimation->estimate_type == 'fp') Function/Feature Point(FP) @endif

    @if($estimation->estimate_type == 'sp')
  • Total SP {{ array_sum(array_column($estimation->sp_data,'sp')) }}
  • Total Efforts (Hrs){{ array_sum(array_column($estimation->sp_data,'effort')) }}
  • @endif @if($estimation->estimate_type == 'fp')
  • Total Effort {{ !empty($estimationFunctionPoint->total_project_effort) ? $estimationFunctionPoint->total_project_effort : 0 }}
  • Total Project Cost (Hrs)₹{{ !empty($estimationCost->total_cost) ? $estimationCost->total_cost : 0.00 }}
  • @endif
  • Customer name
    {{ $estimation->customer_name }}
  • Opportunity name
    {{ $estimation->opportunity_name }}
  • Project name
    {{ $estimation->project_name }}
  • Project type
    {{ $estimation->project_type_id }}
  • Estimate date
    {{ \Carbon\Carbon::parse($estimation->estimate_date)->format('M d, Y') }}
  • Revised date
    {{ !empty($estimation->revised_date) ? \Carbon\Carbon::parse($estimation->revised_date)->format('M d, Y') : 'N/A' }}
  • Version
    V{{ $history->version }}
@if($estimation->estimate_type == 'sp')
@foreach($estimation->sp_data as $row) @endforeach
Story ID Dependencies External interfaces UI Interface UI Variations CRUD Operations Technologies Process Complexity Architecture Change Estimation SP Efforts (Hrs)
{{ $row->estimation_story_id }}
{{ $estimationMaster->where('type', 'dependencies')->where('id', $row->dependency)->first()->value }}{{ $estimationMaster->where('type', 'dependencies')->where('id', $row->dependency)->first()->name }} {{ $estimationMaster->where('type', 'external-interfaces')->where('id', $row->external_interface)->first()->value }}{{ $estimationMaster->where('type', 'external-interfaces')->where('id', $row->external_interface)->first()->name }} {{ $estimationMaster->where('type', 'ui-interfaces')->where('id', $row->ui_interface)->first()->value }}{{ $estimationMaster->where('type', 'ui-interfaces')->where('id', $row->ui_interface)->first()->name }} {{ $estimationMaster->where('type', 'ui-variations')->where('id', $row->ui_variation)->first()->value }}{{ $estimationMaster->where('type', 'ui-variations')->where('id', $row->ui_variation)->first()->name }} {{ $estimationMaster->where('type', 'crud-operations')->where('id', $row->crud_operation)->first()->value }}{{ $estimationMaster->where('type', 'crud-operations')->where('id', $row->crud_operation)->first()->name }} {{ $estimationMaster->where('type', 'technologies')->where('id', $row->technology)->first()->value }}{{ $estimationMaster->where('type', 'technologies')->where('id', $row->technology)->first()->name }} {{ $estimationMaster->where('type', 'process-complexity')->where('id', $row->process_complexity)->first()->value }}{{ $estimationMaster->where('type', 'process-complexity')->where('id', $row->process_complexity)->first()->name }} {{ $estimationMaster->where('type', 'architecture-change')->where('id', $row->architecture_change)->first()->value }}{{ $estimationMaster->where('type', 'architecture-change')->where('id', $row->architecture_change)->first()->name }} {{ $row->estimation }} {{ $row->sp }} {{ $row->effort }}
@endif @if($estimation->estimate_type == 'fp') @endif
@endsection