@extends('admin.layout') @section('content')

{{ trans('Edit Notes') }}

@php $getUserRoleData = userRoleData(); $Notes = explode(",",$getUserRoleData->Notes); @endphp
@if(in_array("View",$Notes))
  • Back
@endif
@if(session()->has('message'))

{{ trans('labels.Successlabel') }}

{{ session()->get('message') }}
@endif @if(session()->has('error'))

{{ trans('labels.WarningLabel') }}

{{ session()->get('error') }}
@endif
@if(in_array("Edit",$Notes )) {!! Form::open(array('url' =>'admin/edit-notes-data', 'method'=>'post', 'class' => 'form-horizontal', 'id' => 'createNotesData', 'enctype'=>'multipart/form-data')) !!}
@if($result['notesData']->thread_type == "Accounts")
@if(!empty($result['accounts']->name)) {{ $result['accounts']->name }} @else {{ implode(', ', $accountNumber) }} @endif
@endif
{!! Form::text('subject', $result['notesData']->subject, array('class'=>'form-control', 'id'=>'subject', 'required'=>'required', 'maxlength'=>'80')) !!}
@if($result['notesData']->thread_type == "Leads")
@endif
{!! Form::text('name', $result['notesData']->name, array('class'=>'form-control', 'id'=>'name')) !!}
{!! Form::text('contact', $result['notesData']->contact, array('class'=>'form-control', 'id'=>'contact', 'maxlength'=>'12', 'minlength'=>'9')) !!}
{!! Form::text('talk_time', '', array('class'=>'form-control', 'id'=>'talk_time', 'required'=>'required', 'maxlength'=>'3')) !!}
{!! Form::textarea('description', '', array('class'=>'form-control', 'id'=>'description', 'rows'=>'4', 'required'=>'required')) !!}
Drop files here or click to upload.
Drop files in the box or click on "+" to upload.
@if(count((array) $result['notesData']['notes_comments'])>0)

Notes
@foreach ($result['notesData']['notes_comments'] as $cmVal) @if(!empty($cmVal->description))
{!!nl2br($string)!!}
@endif @endforeach @endif
{!! Form::close() !!} @else

Please contact with SuperAdmin

@endif
@endsection