@extends('layouts.master') @section('heading') @stop @section('content') @push('scripts') @endpush
@include('partials.clientheader') @include('partials.userheader')

{{$client->title}}

{{ __('Created at') }}: {{ date('d F, Y, H:i:s', strtotime($lead->created_at))}} @if($lead->updated_at != $lead->created_at)
{{ __('Modified') }}: {{date('d F, Y, H:i:s', strtotime($lead->updated_at))}} @endif
Contact Date :{{$lead->contact_date ? $lead->contact_date:'Not Provided'}}
Next Contact Date : {{$lead->next_contact_date? $lead->next_contact_date:' Not Provided'}}
Notes : {{$lead->notes ? $lead->notes:'Not Provided'}}
Estimated Sales : {{$lead->estimated_sale ? $lead->estimated_sale:'Not Provided'}}

{{ __('Lead information') }}

{{ __('Assigned to') }}: {{$lead->user->name}}

{{ __('Created at') }}: {{ date('d F, Y, H:i', strtotime($lead->created_at))}}

@if($lead->days_until_contact < 2)

{{ __('Contact date') }}: {{date('d, F Y, H:i', strTotime($lead->contact_date))}} @if($lead->status == 1) ({!! $lead->days_until_contact !!}) @endif

@else

{{ __('Contact date') }}: {{date('d, F Y, H:i', strTotime($lead->contact_date))}} @if($lead->status == 'won') ({!! $lead->days_until_contact !!})@endif

@endif {{ __('Status') }}: {{$lead->status}}
{{-- @if($lead->status == 1) {!! Form::model($lead, [ 'method' => 'PATCH', 'url' => ['leads/updateassign', $lead->id], ]) !!} {!! Form::select('user_assigned_id', $users, null, ['class' => 'form-control ui search selection top right pointing search-select', 'id' => 'search-select']) !!} {!! Form::submit(__('Assign new user'), ['class' => 'btn btn-primary form-control closebtn']) !!} {!! Form::close() !!} {!! Form::model($lead, [ 'method' => 'PATCH', 'url' => ['leads/updatestatus', $lead->id], ]) !!} {!! Form::submit(__('Complete Lead'), ['class' => 'btn btn-success form-control closebtn movedown']) !!} {!! Form::close() !!} @endif --}} {{--
@foreach($lead->activity as $activity)
{{date('d, F Y H:i', strTotime($activity->created_at))}}
{{$activity->text}}
@endforeach
--}}
@stop