@extends('admin.layouts.app') @section('title', 'Opportunity View') @section('content') @php($business_id = Auth::guard('admin')->user()->business_id) @php($currecy = DB::table('about_businesses')->join('currency_countries', 'about_businesses.base_currency', '=', 'currency_countries.currency_country_uuid')->where('business_id', $business_id)->select('currency_countries.country_code')->first())

Opportunity View

view and manage an opportunity in detail, you will get a 360 degree view on the opportunity, communication and any notes or activities recorded.
@if(!empty($show->thumbnail) && file_exists('uploads/opportunity/thumbnail/'.$show->thumbnail)) @else
@if(!empty($show->opportunity_name)) @php($opportunity_name = $show->opportunity_name) @php($opportunity_name_upper =strtoupper($opportunity_name)) @php($opportunityname=explode(" ",$opportunity_name_upper)) @if(!empty($opportunityname[0])) @if(!empty($opportunityname[1])) {{ $opportunityname[0][0].$opportunityname[1][0] }} @else {{ $opportunityname[0] }} @endif @else {{ 'N/A' }} @endif @endif
@endif
{{!empty($show->opportunity_code) ? $show->opportunity_code : '0'}}
{{ !empty($currecy) ? $currecy->country_code : 'USD' }} {{!empty($show->estimated_budget ) ? number_format($show->estimated_budget,$business->amt_decimal) : '0'}} Projected Value
Account
{{!empty($show->opportunity_expiry) ? date('d M,Y',strtotime($show->opportunity_expiry)) : ''}} Expected Closing
{{!empty($show->proposal_deadline) ? date('d M,Y',strtotime($show->proposal_deadline)) : ''}} Proposal Deadline
@if(!is_null($opportunity_stages) && !empty($opportunity_stages)) @php($done_class = 'done') @php($no_event_pointer ='') @foreach($opportunity_stages as $opportunity_stage) @if($show->opportunity_stage == $opportunity_stage->opportunitystage_uuid) @php($each_stage = '') @else @php($each_stage = 'each_stage1') @endif
{{ $opportunity_stage->title }}
@if($opportunity_stage->opportunitystage_uuid == $show->opportunity_stage) @php($done_class = '') @endif @endforeach @endif
tasks
2 Tasks
@php($now = \Carbon\Carbon::now())
timeline
{{ !empty($first_data) ? (int)dateDiffInDays(date('Y-m-d H:i:s', strtotime($now)), date('Y-m-d H:i:s', strtotime($first_data->created_at))) : 0 }} Days
@if (count($stage_timeline) > 0) @php($days_spent = 0) {{-- when stage is last and record is last and days spent is 0 --}} @php($is_stage = DB::table('opportunity_settings')->where('opportunitystage_uuid', $show->opportunity_stage)->first()) @php($is_stage_end = (!empty($is_stage) && (($is_stage->is_won == 1) || $is_stage->is_lost == 1)) ? 1 : 0)
    @if(!empty($opportunity_stages)) @foreach($opportunity_stages as $eachstage) @php($stage_timeline = DB::table('stage_day_spendings')->where('opportunity_stage', $eachstage->opportunitystage_uuid)->where('opportunity_uuid', $show->opportunity_uuid)->first()) @php($class = strtolower(str_replace(' ', '_', $eachstage->title))) @if(!empty($stage_timeline)) @php($days_spent = (int)dateDiffInDays(date('Y-m-d H:i:s', strtotime($now)), date('Y-m-d H:i:s', strtotime($stage_timeline->created_at))))
  • {{ $days_spent }}
  • @else
  • @endif @endforeach @endif
    @if(!empty($opportunity_stages)) @foreach($opportunity_stages as $eachstage) @php($stage_data = DB::table('opportunity_settings')->where('opportunitystage_uuid', $eachstage->opportunitystage_uuid)->first()) @php($stage_timeline = DB::table('stage_day_spendings')->where('opportunity_stage', $eachstage->opportunitystage_uuid)->where('opportunity_uuid', $show->opportunity_uuid)->first()) @php($class = strtolower(str_replace(' ', '_', $eachstage->title))) @php($current_stage = DB::table('stage_day_spendings')->where('opportunity_uuid', $show->opportunity_uuid)->orderBy('created_at', 'desc')->first()) @if(!empty($stage_timeline)) @php($days_spent = (int)dateDiffInDays(date('Y-m-d H:i:s', strtotime($now)), date('Y-m-d H:i:s', strtotime($stage_timeline->created_at)))) @if(!empty($current_stage) && $current_stage->opportunity_stage == $eachstage->opportunitystage_uuid && $is_stage_end !=1)
  • @else
  • @endif @else
  • @endif @endforeach @endif
@if(!empty($opportunity_stages)) @foreach($opportunity_stages as $eachstage) {{ $eachstage->title }} @endforeach @endif
@endif
@include('admin.bottom.messages')
@include('admin.bottom.notes')
@include('admin.bottom.task_view')
@include('admin.bottom.mytask_view')
@include('admin.bottom.files')
@if(!empty($opportunityquote)) @foreach($opportunityquote as $quote)
@php($owners = \App\Models\Admin::where('admin_uuid', $quote->quote_owner)->first()) @php($contact = \App\Models\Contacts::where('contact_uuid',$quote->prepared_for_uuid)->first()) {{$quote->quote_title}} {{$owners->title}} {{$owners->firstname}} {{$owners->lastname}}
{{ $contact->contact_title .' '. $contact->contact_first_name .' '. $contact->contact_middle_name .' '.$contact->contact_last_name }}
{{ time_elapsed_string($quote->created_at) }}
{{--
--}}
@endforeach @else

No record found!!!

@endif
@foreach ($opportunity_components as $component)
{{$component->component_name}} - {{$component->vendor_name}}
@endforeach

Qterminals need customized online based SharePoint solution.

@include('admin.bottom.logs')

Are You Sure?

Your recently changed data in this model will be lost.

@include('admin.common-modals.upload-file'); @include('admin.common-modals.note'); @include('admin.bottom.file_viewer'); @include('admin.common-modals.component-add'); @include('admin.common-modals.mail-view'); @include('admin.common-modals.newmessage'); @stop @section('styles') @stop @section('admin_js') @include('admin.opportunities.js.view') @include('admin.common-js.common') @stop