@extends('layouts.admin.master') @section('title', 'Employee') @section('content') Employee Add New Employee Clear Save Employee Info @csrf Employee Name * @error('employee_name') {{ $message }} @enderror Other Name Employee Code * @error('employee_code') {{ $message }} @enderror Employee Position * Select- @if (count($employeePositions) != 0) @foreach ($employeePositions as $employeePosition) {{ $employeePosition['position_name'] }} @endforeach @endif @error('employee_position') {{ $message }} @enderror Terminate Employee Lists No Employee Name Other Name Employee Code Employee Position Terminate Edit Delete @if (count($employees) != 0) @php $count = 1; @endphp @foreach ($employees as $employee) {{ $count }} {{ $employee['employee_name'] }} {{ $employee['employee_other_name'] }} {{ $employee['employee_code'] }} {{ $employee['position_name'] }} @if ($employee['is_terminate'] == 0) @elseif ($employee['is_terminate'] == 1) @endif @php $count++; @endphp @endforeach @endif Update Employee @csrf Employee Name * Other Name Employee Code * Employee Position * @if (count($employeePositions) != 0) @foreach ($employeePositions as $employeePosition) {{ $employeePosition['position_name'] }} @endforeach @endif Terminate @csrf Are you sure want to delete? @endsection