<?php Fun::lang() ?>
@csrf

<div class="container-fluid">
    <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 form-group">
        <label>{{__('administrator.name')}}</label>
        <input type="text" class="form-control lname" placeholder="Last Name" maxlength="25" value="{{$lead->name}}" readonly/>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 form-group">
        <label>{{__('administrator.gender')}}</label>
        <input type="text" class="form-control " value="{{__('administrator.'.$lead->sex)}}" readonly/>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 form-group">
        <label>{{__('administrator.address')}}</label>
        <input type="text" class="form-control address " placeholder="Address " maxlength="25" value="{{$lead->address}}" readonly/>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 form-group">
        <label>{{__('administrator.contact')}}</label>
        <input type="text" class="form-control contact" placeholder="Contact" maxlength="25" value="{{$lead->contact}}" readonly/>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 form-group">
        <label>{{__('administrator.date')}}
            <span class="text-danger">*</span></label>
        {!! Form::text('date', @$task?(date('d-m-Y',strtotime($task->date))):date('d-m-Y'), ['class' => 'form-control date_picker', 'placeholder' => __('administrator.date')])  !!}
    </div>
    <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 form-group">
        <label>{{__('administrator.subject')}}</label>
        {!! Form::text('subject',null, ['class' => 'form-control ', 'placeholder' => __('administrator.subject')])  !!}
        {!! Form::hidden('lead_id',request()->lead_id)  !!}
    </div>
    <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 form-group">
        <label>{{__('administrator.task_type')}}
            <span class="text-danger">*</span></label>
        {!! Form::select('task_type', ['meeting' => 'Meeting', 'appointment' => 'Appointment', 'call_log' => 'Call Log'], null, ['class' => 'task form-control select2', 'placeholder' => 'Task Type'])  !!}
    </div>
    <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 form-group">
        <label>{{__('administrator.place')}}</label>
        {!! Form::text('place',(@$task?$task->where:null), ['class' => 'form-control ', 'placeholder' => __('administrator.place')])  !!}
    </div>
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 form-group">
        <label>{{__('administrator.note')}}</label>
        {!! Form::textarea('note',null, ['class' => 'form-control', 'placeholder' => __('administrator.note')])  !!}
    </div>
</div>
{!! Form::submit($button_text, ['class' => 'form-control btn btn-primary submit_ display-none' ]) !!}


