@extends('layout.index') @if (isset($aEmployee->id)) @section('title', 'Edit Employee Details') @else @section('title', 'Add Employee Details') @endif @section('content')
@php $aEmployee->id ? $id = $aEmployee->id : $id = 0; @endphp
@if ($message = Session::get('success'))
@endif
id)) action="{{ route('add_edit.employee') }}" @else action="{{ route('add_edit.employee', $aEmployee->id) }}" @endif method="post"> {{ csrf_field() }}
@error('Pakage_id') {{ $message }} @enderror
@error('emp_id') {{ $message }} @enderror
@error('firstname') {{ $message }} @enderror
@error('middlename') {{ $message }} @enderror
@error('lastname') {{ $message }} @enderror
@error('designation') {{ $message }} @enderror
@error('address') {{ $message }} @enderror