@php use Illuminate\Support\Str; $breadcrumbs = [ ['name' => __('CRM'), 'url' => '#'], ['name' => __('Sales'), 'url' => '#'], ['name' => __('Deals'), 'url' => route('deals.index')] ]; @endphp @extends('layouts.layoutMaster') @section('title', __('Deal Details') . ': ' . $deal->title) @section('vendor-style') @vite([ 'resources/assets/vendor/libs/select2/select2.scss', 'resources/assets/vendor/libs/flatpickr/flatpickr.scss', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.scss' ]) @endsection @section('vendor-script') @vite([ 'resources/assets/vendor/libs/select2/select2.js', 'resources/assets/vendor/libs/flatpickr/flatpickr.js', 'resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.js' ]) @endsection @section('page-script') @vite(['Modules/CRMCore/resources/assets/js/deal-show-interactions.js']) @endsection @section('content')
{{ __('Deal Details') }}
{{ __('Back to Funnel') }}
{{ __('Deal Information') }}
{{ __('Value') }}:
{{ \App\Helpers\FormattingHelper::formatCurrency($deal->value) }}
{{ __('Pipeline') }}:
{{ $deal->pipeline?->name ?? '-' }}
{{ __('Stage') }}:
{{ $deal->dealStage?->name ?? '-' }}
{{ __('Probability') }}:
{{ $deal->probability ?? '-' }}%
{{ __('Expected Close') }}:
{{ $deal->expected_close_date ? $deal->expected_close_date->format('d M Y') : '-' }}
{{ __('Associated Parties') }}
{{ __('Customer') }}:
@if($deal->customer) {{ $deal->customer->name }} @else - @endif
{{ __('Company') }}:
@if($deal->company) {{ $deal->company->name }} @else - @endif
{{ __('Assigned To') }}:
{{ $deal->assignedToUser?->getFullNameAttribute() ?? '-' }}
@if($deal->dealStage && $deal->dealStage->is_lost_stage && $deal->lost_reason)
{{ __('Lost Reason') }}

{{ $deal->lost_reason }}

@endif
@if($deal->description)
{{ __('Description') }}

{{ $deal->description }}

@endif
@include('crmcore::deals._form') @if($taskSystemEnabled ?? false) @include('tasksystem::tasks._form') @endif @endsection