@if (isset($opportunity)) {!! Form::open(['url' => $type . '/' . $opportunity->id, 'method' => 'delete', 'class' => 'bf']) !!} @endif
{!! Form::label('product_name', trans('opportunity.opportunity_name'), ['class' => 'control-label']) !!}
{{ $opportunity->opportunity }}
{!! Form::label('stages', trans('opportunity.stages'), ['class' => 'control-label']) !!}
{{ $opportunity->stages }}
{!! Form::label('stages', trans('opportunity.expected_revenue'), ['class' => 'control-label']) !!}
{{ $opportunity->expected_revenue }}
{!! Form::label('stages', trans('opportunity.probability'), ['class' => 'control-label']) !!}
{{ $opportunity->probability }}
{!! Form::label('stages', trans('company.company_name'), ['class' => 'control-label']) !!}
{{ isset($opportunity->companies->name)?$opportunity->companies->name:null }}
{!! Form::label('stages', trans('lead.agent_name'), ['class' => 'control-label']) !!}
{{ $user->where('id',$opportunity->customer_id)->first()->full_name }}
{!! Form::label('sales_team_id', trans('salesteam.sales_team_id'), ['class' => 'control-label']) !!}
{{ $opportunity->salesTeam->salesteam }}
{!! Form::label('stages', trans('salesteam.main_staff'), ['class' => 'control-label']) !!}
{{ isset($opportunity->staffs->full_name)?$opportunity->staffs->full_name:null }}
{!! Form::label('additional_info', trans('opportunity.next_action'), ['class' => 'control-label']) !!}
{{ $opportunity->next_action_date }}
{!! Form::label('additional_info', trans('opportunity.expected_closing'), ['class' => 'control-label']) !!}
{{ $opportunity->expected_closing_date }}
{!! Form::label('additional_info', trans('opportunity.additional_info'), ['class' => 'control-label']) !!}
{{ $opportunity->additional_info }}
@if (@$action == 'show') {{trans('table.back')}} @else {{trans('table.back')}} @endif
{!! Form::close() !!}
@section('scripts') @endsection