@extends('layouts.organization.app') @section('content')
JBP COMMERCIAL BROKERS LLC
@if(!empty($user_profile)) @php $users_data = json_decode($user_profile->datas); @endphp
@if(!empty($users_data->profile)) @else @endif

@if(!empty($user))

{{$user->name}}

@endif @if(!empty($users_data->employee_code))

  {{$users_data->employee_code}}

@endif @if(!empty($user->email))

  {{$user->email}}

@endif @if(!empty($user->alternate_email))

  {{$user->alternate_email}} Make Primary

@endif @if(!empty($user->mobile))

  {{$user->mobile}}

@endif @if(!empty($users_data->dob))

  {{date('d-M-Y',strtotime($users_data->dob))}}

@endif
@endif @foreach($form_category as $formcategory) @php $form_datas = DB::select("SELECT b.form_name,b.form_column,b.data_type FROM `map_form_orgs` as a INNER JOIN form_engines as b on a.form_name=b.form_column WHERE organisation_id=$organisation->user_id AND b.form_category_id=$formcategory->id ORDER BY b.order_id ASC"); $data = App\Models\EmployeeInfo::select('datas')->where('organisation_id',$organisation->user_id)->where('user_id',$user_id)->where('from_cat_id',$formcategory->id)->first(); $emp = @json_decode($data->datas); @endphp @if($formcategory->is_multiple==1)
{{$formcategory->name}}
@if(!empty($emp)) @foreach($emp as $x => $val) @php $form = App\Models\FormEngine::select('form_name')->where('form_column',$x)->first();@endphp @endforeach @endif @if(!empty($emp)) @foreach($emp as $x => $val) @php $form = App\Models\FormEngine::select('form_name','data_type')->where('form_column',$x)->first(); $count = count($val); @endphp @endforeach @else @endif
{{$form->form_name}}
@for($i=0;$i < $count;$i++) @if($form->data_type=='file') @if(!empty($val[$i]))

Download

@endif @elseif($form->data_type=='date') @if(!empty($val[$i]))

{{date('d-M-Y',strtotime($val[$i]))}}

@endif @else @if(!empty($val[$i]))

{{$val[$i]}}

@endif @endif @endfor
No {{$formcategory->name}} Found
@else
{{$formcategory->name}}
@if(!empty($form_datas[0])) @foreach($form_datas as $forms) @php $form = DB::select("SELECT REPLACE(json_extract(datas,'$.$forms->form_column'),'\"','') as data FROM `employee_infos` where organisation_id=$organisation->user_id AND user_id=$user_id AND from_cat_id=$formcategory->id"); $possition=null; @endphp @if(!empty($form[0])) @if($formcategory->name=='Employee Details') @if($loop->iteration==3) @if(!empty($line_manager->name)) @endif @endif @endif @endif @endforeach @else @endif
{{$forms->form_name}} @if($forms->data_type=='file') @if(!empty($form[0]->data))

Download

@endif @elseif($forms->data_type=='date') @if(!empty($form[0]->data))

{{date('d-M-Y',strtotime($form[0]->data))}}

@endif @else @if(!empty($form[0]->data)) @if($formcategory->id==1) @if($forms->form_column=='department') @php $designation_id = DB::select("SELECT REPLACE(json_extract(update_data,'$.$forms->form_column'),'\"','') as data FROM `employee_infos` where organisation_id=$organisation->user_id AND user_id=$user_id AND from_cat_id=1 LIMIT 1"); if(!empty($designation_id[0])){ $designation = $designation_id[0]->data; $possition = DB::select("SELECT a.id,c.department_name,a.sub_position FROM `position_masters` AS a INNER JOIN department_masters AS c ON c.id=a.department_id WHERE a.orgnization_id=$organisation->user_id AND a.id = $designation LIMIT 1"); } @endphp @endif @endif

{{$form[0]->data}} @if(!empty($possition[0])) - {{$possition[0]->sub_position}} @endif

@endif @endif
Line Manager {{$line_manager->name}}
No {{$formcategory->name}} Found
@endif @endforeach
Leave Details
@if(count($leaves) != 0) @foreach ($leaves as $leave) @endforeach
Sr No. Start Date End Date Duration Leave Type Status
{{$loop->iteration}} {{date('d M, Y', strtotime($leave->start_date))}} {{date('d M, Y', strtotime($leave->end_date))}} {{$leave->duration}} {{$leave->name}} {{$leave->status}}
@else

No leave history found

@endif
Salary Deatils
@php $salaries_details = \DB::table('salary_history')->where('user_id',$user->id)->orderBy('id','DESC')->get(); @endphp @if(!empty($salaries_details)) @foreach($salaries_details as $sal) @endforeach
Sr No. Current Salary Date
{{$loop->iteration}} {{number_format($sal->current_salary,2)}} {{date('d M Y', strtotime($sal->created_at))}}
@else

No salary deatils found

@endif
Salary Slips
@if(count($salaries) != 0) @foreach ($salaries as $salari) @endforeach
Sr No. Month Action
{{$loop->iteration}} {{date('M, Y', strtotime($salari->month_year))}} Download
@else

No salary slip found

@endif
Assets Item
Assign Assets
@if(!empty($assets)) @foreach($assets as $row) @endforeach
S.No Assets Type Model Number Serial No Assign Date Action
{{$loop->iteration}} {{$row->assets_name}} {{$row->model_number}} {{$row->serial_no}} {{date_format(date_create($row->created_at),"d M Y")}}
@else

No data found

@endif
@if($employee_exit)
Employee Exit
@if($employee_exit->resignations_type == 1) @if(!empty($employee_exit->no_dues_certificate)) @endif @if(!empty($employee_exit->relieving_letter)) @endif @if(!empty($employee_exit->fnf)) @endif @endif @if($employee_exit->resignations_type == 2) @if(!empty($employee_exit->no_dues_certificate)) @endif @if(!empty($employee_exit->relieving_letter)) @endif @if(!empty($employee_exit->fnf)) @endif @endif @if($employee_exit->resignations_type == 3) @endif @if($employee_exit->resignations_type == 4) @if(count($ExitDocument) != 0) @foreach($ExitDocument as $ExitDocum) @endforeach @endif @endif
Exit reason Email Account Inactive Control Panel Changed Resignation Date Resignation Acceptance Date Relieving Date Handover Done
Resigned @if($employee_exit->email_active==1) Yes @else No @endif @if($employee_exit->control_panel==1) Yes @else No @endif {{ date('d M, Y', strtotime($employee_exit->resignation_date)) }} {{ date('d M, Y', strtotime($employee_exit->resignation_acceptance_date)) }} {{ date('d M, Y', strtotime($employee_exit->relieving_date)) }} @if($employee_exit->handover==1) Yes @else No @endif
Uploaded Document
No Dues Certificate Download
Relieving Letter Download
FNF Statement Download
Exit reason Email Account Inactive Control Panel Changed Handover Done Reason To Terminate
Terminated @if($employee_exit->email_active==1) Yes @else No @endif @if($employee_exit->control_panel==1) Yes @else No @endif @if($employee_exit->handover==1) Yes @else No @endif @if($employee_exit->reason_terminate==1) Behavioral Issue @else Work Related Issue @endif
Uploaded Document
No Dues Certificate Download
Relieving Letter Download
FNF Statement Download
Exit reason Date Of Abscoding Last Reminder Brief Explain
Absconding {{ date('d M, Y', strtotime($employee_exit->date_of_abscoding)) }} {{ date('d M, Y', strtotime($employee_exit->last_reminder)) }} {{ $employee_exit->comment }}
Exit reason Leaving Date Comment Exit Survey/Interview
@if($employee_exit->resignations_type == 1) Resigned @endif @if($employee_exit->resignations_type == 2) Terminated @endif @if($employee_exit->resignations_type == 3) Absconding @endif @if($employee_exit->resignations_type == 4) Other Reason @endif {{ date('d M, Y', strtotime($employee_exit->leaving_date)) }} {{ $employee_exit->comment }} {{ $employee_exit->interview_comment }}
Uploaded Document
{{ $ExitDocum->title }} Download
@endif
@endsection('content')