@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content')

{{trans('master/master.visitor_details')}}

{{trans('master/master.name')}} : {{$visitorDetails->name}}
{{trans('master/master.email')}} : {{$visitorDetails->email}}
{{trans('master/master.mobile')}} : {{$visitorDetails->mobile}}
{{trans('master/master.father_name')}} : {{$visitorDetails->employeeDetail->father_name}}
{{trans('master/master.address')}} : {{$visitorDetails->geo_address}}
{{trans('master/master.country')}} : @if(isset($visitorDetails->employeeDetail->country->name)){{$visitorDetails->employeeDetail->country->name}} @endif
{{trans('master/master.state')}} : @if(isset($visitorDetails->employeeDetail->state->name)){{$visitorDetails->employeeDetail->state->name}} @endif
@php $status = ''; if($visitorDetails->status == 'active'){ $status = 'Active'; } else{ $status = 'Inactive'; } @endphp @if($status == 'Active') @else @endif
{{trans('master/master.city')}} : @if(isset($visitorDetails->employeeDetail->city->name)) {{$visitorDetails->employeeDetail->city->name}} @endif
{{trans('master/master.pincode')}} : {{$visitorDetails->employeeDetail->pincode}}
{{trans('master/master.company_name')}} : {{$visitorDetails->employeeDetail->company_name}}
{{trans('master/master.id_proof')}} : {{$visitorDetails->employeeDetail->id_proof_type}}
{{trans('master/master.id_proof_number')}} : {{$visitorDetails->employeeDetail->id_proof_no}}
{{trans('common/common.status')}} : {{trans('common/common.active')}}
{{trans('common/common.status')}} : {{trans('common/common.inactive')}}
@if($visitorDetails->id_proof_attachment)

{{trans('master/master.id_proof')}} {{trans('common/common.attachments')}}

@if($visitorDetails->getMedia('id_proof_attachment')->last()->mime_type=='application/pdf')
attachment @else id proof attachment
@endif
@endif @if($visitorDetails->imagebase64code)

{{trans('master/master.visitor_selfie_image')}}

@endif

{{trans('master/master.meeting_details')}}

{{trans('master/master.from_date')}} : {{$meetingDetails->request_from_date}}
{{trans('master/master.to_date')}} : {{$meetingDetails->request_to_date}}
{{trans('master/master.purpose')}} : {{$meetingDetails->purpose}}
{{trans('master/master.locations')}} : @foreach($ApprovedLocations as $location) {{$location->name}}
@endforeach
@if($meetingDetails->status=='pending' || $meetingDetails->status=='active') {!! Form::model($meetingDetails, ['method' => 'post', 'files' => 'true']) !!}
{!! $errors->first('status', '')!!}
{!! $errors->first('location_id', '')!!}
@foreach ($errors->all() as $error) {{ $error }} @endforeach
{!! Form::textarea('remarks', isset($meetingDetails->remarks) ? $meetingDetails->remarks : old('remarks'), ['class' => 'form-control', 'id' => 'remarks', 'rows' => 2, 'style' => 'resize:none;']) !!} {!! $errors->first('remarks', '')!!}
{!! Form::close() !!} @else
@php $status = ''; if($meetingDetails->status == 'approve'){ $status = 'Approve'; } elseif($meetingDetails->status == 'approved'){ $status = 'Approve'; } elseif($meetingDetails->status == 'pending'){ $status = 'Pending'; } else{ $status = 'reject'; } @endphp @if($status == 'Approve') @elseif($status == 'Pending') @else @endif
{{trans('common/common.status')}} : {{trans('common/common.approve')}}
{{trans('common/common.status')}} : {{trans('common/common.pending')}}
{{trans('common/common.status')}} : {{trans('common/common.reject')}}
{{trans('master/master.remarks')}} : {{ $meetingDetails->remarks }}
{{trans('master/master.sub_location')}} : @foreach($ApprovedsubLocations as $location) {{$location->name}}
@endforeach
@endif
@endsection @push('footer-script') @endpush