@extends('master') @section('content') @if($message = session('error'))
{{ $message }}
@endif

Employee List

@if(auth()->check() && auth()->user()->role_id == 2) @endif
@foreach($employee as $emp) @endforeach
Employee ID Name Father Name Contact No. CNIC Gender Company Department Joining date Resignation Status Action
{{ $emp->emp_id }} {{ $emp->name }} {{ $emp->father_name }} {{ $emp->contact }} {{ $emp->cnic }} {{ $emp->gender }} {{ $emp->company->name }} @if($emp->department) {{ $emp->department->name }} @else Not Assigned @endif {{ $emp->joining_date }} {{ $emp->resignation }} @if($emp->status == 100) Active @elseif($emp->status == 0) Inactive @endif Edit
@endsection @push('scripts') @endpush