@extends('layouts.app') @section('title') {{'Employee Information'}} @endsection @section('content') @php $users_name = DB::table('users')->select('id','name')->orderBy('name','asc')->get(); @endphp
Employee Information Back
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif


@php if (isset($data_set->id)) { $date_of_joining = $data_set->date_of_joining; $fathers_name = $data_set->fathers_name; $mothers_name = $data_set->mothers_name; $present_address = $data_set->present_address; $permanent_address = $data_set->permanent_address; $date_of_birth = $data_set->date_of_birth; $education_qualification = $data_set->education_qualification; $nid_no = $data_set->nid_no; $passport_no = $data_set->passport_no; $blood_group = $data_set->blood_group; $display = 'block'; } else { $display = 'none'; } @endphp
@php $Employee_list = DB::table('users')->select('users.*')->orderBy('name', 'ASC')->get();@endphp
Employee Name
Date of Joining
Father’s Name
Mother’s Name
Present Address
Permanent Address
Date of Birth
Education Qualification
NID No
Passport No
Blood Group

  {{ csrf_field() }} @if(isset($data_set->id)) @else @endif




@foreach($data as $k=>$row) @php $emp_id = $row->emp_id; $name = $row->name; $designation = $row->designation; $date_of_joining = $row->date_of_joining; $fathers_name = $row->fathers_name; $mothers_name = $row->mothers_name; $present_address = $row->present_address; $permanent_address = $row->permanent_address; $date_of_birth = $row->date_of_birth; $education_qualification = $row->education_qualification; $nid_no = $row->nid_no; $passport_no = $row->passport_no; $blood_group = $row->blood_group; @endphp @endforeach
Sl No. EMP ID Employee Name Designation Date of Joining Father’s Name Mother’s Name Present Address Permanent Address Date of Birth Education Qualification NID No Passport No Blood Group Status Action
{{ ++$k }} {{ $emp_id }} {{ $name }} {{ $designation }} {{ date('d-m-Y', strtotime($date_of_joining)) }} {{ $fathers_name }} {{ $mothers_name }} {{ $present_address }} {{ $permanent_address }} {{ date('d-m-Y', strtotime($date_of_birth)) }} {{ $education_qualification }} {{ $nid_no }} {{ $passport_no }} {{ $blood_group }} @if (Auth::user()->id == "2") @endif
{{ $data->appends(request()->query())->links() }}
@endsection