@extends('layouts.app') @section('content') @if((Auth::user()->id == $lead->created_user_id) || (Auth::user()->id == $lead->assigned_user_id) || (Auth::user()->user_type == 'user') || (Auth::user()->role_id == 17))
{{ _lang('View Lead Details') }} @php $date_format = get_company_option('date_format','Y-m-d'); @endphp @php $time_format = get_company_option('time_format',24) == '24' ? 'H:i' : 'h:i A'; @endphp @php $currency = currency() @endphp
@if((Auth::user()->id == $lead->assigned_user_id) || (Auth::user()->user_type == 'user') || (Auth::user()->role_id == 17)) @endif
{{ _lang('Name') }} {{ $lead->id.'# -'}} {{$lead->name }} @if($lead->converted_lead!=1) {{ _lang('Convert to Customer') }} @endif
{{ _lang('Company Name') }} {{$lead->company_name }}
{{ _lang('Email') }} {{$lead->email }}
{{ _lang('Secondary Email') }} {{$lead->secondary_email }}
{{ _lang('Phone') }} {{$lead->phone }}
{{ _lang('Secondary Phone') }} {{$lead->secondary_phone }}
{{ _lang('Website') }} {{$lead->website }}
{{ _lang('Lead Status') }} {{ $lead->lead_status->title }}
{{ _lang('Assigned ') }}{{ $lead->assigned_user->name }}
{{ _lang('TimeZone') }}{{ $lead->zonename->name??'' }}
{{ _lang('State') }}{{ $lead->zone_state }}
{{ _lang('Address') }}{!! $lead->address !!}
{{ _lang('Created') }}{{ date($date_format, strtotime($lead->created_at)) }}
{{ csrf_field() }}
@foreach($notes as $note) @endforeach
{{ $note->user->name }} ({{ date("$date_format $time_format", strtotime($note->created_at)) }})
{!! $note->note !!}
{{ _lang('Create New') }} @foreach($quotations as $quotation) @php $lead_currency = currency($quotation->lead->currency); @endphp @endforeach
{{ _lang('Quotation Number') }} {{ _lang('Quotation To') }} {{ _lang('Quotation Date') }} {{ _lang('Grand Total') }} {{ _lang('Action') }}
{{ $quotation->quotation_number }} {{ $quotation->lead->name }} {{ date($date_format, strtotime($quotation->quotation_date)) }} @if($lead_currency != $currency) {{ decimalPlace($quotation->grand_total, $currency) }}
{{ decimalPlace($quotation->converted_total, $currency) }} @else {{ decimalPlace($quotation->grand_total, $currency) }} @endif
{{ csrf_field() }}
@foreach($projectfiles as $projectfile) @endforeach
{{ _lang('Upload Date') }} {{ _lang('Uploaded') }} {{ _lang('File') }} {{ _lang('Remove') }}
{{ date("$date_format $time_format", strtotime($projectfile->created_at)) }} {{ $projectfile->user->name }} {{ $projectfile->file }} {{ _lang('Remove') }}
{{ csrf_field() }}
@foreach($notes as $note) @endforeach
{{ $note->user->name }} ({{ date("$date_format $time_format", strtotime($note->created_at)) }})
{{ $note->note }}
{{ csrf_field() }}
{{ csrf_field() }}
@else
Danger! You don't have right to access this page.
@endif @endsection @section('js-script') @endsection