@extends('backend.layouts.master') @section('section-title', 'Employee') @section('page-title', 'Employee List') @if (check_permission('employee.create')) @section('action-button') Add Employee @endsection @endif @section('content')
@foreach ($employees as $data) {{-- delete modal --}} @csrf @method('DELETE') @endforeach
ID Name Phone Designation Salary Joining Date Status Actions
{{ $loop->index + 1 }} {{ $data->name }} {{ $data->phone }} {{ $data->designation }} {{ $data->salary_amount }} {{ $data->join_date }} status == 1 ? 'checked' : '' }} data-off="Inactive" data-onstyle="success" data-offstyle="danger" data-id="{{ $data->id }}" data-model="Employee">
@endsection