@extends('layouts.master') @section('heading') @stop @section('content') @push('scripts') @endpush
@include('partials.clientheader') @include('partials.userheader')
@include('partials.comments', ['subject' => $lead])

{{ __('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)

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

@else

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

@endif @if($lead->status == 1) {{ __('Status') }}: {{ __('Contact') }} @elseif($lead->status == 2) {{ __('Status') }}: {{ __('Completed') }} @elseif($lead->status == 3) {{ __('Status') }}: {{ __('Not interested') }} @endif
@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