@extends('layout.main')
@section('content')
@php
$employees = App\Employee::all();
$staffNumbers = null;
foreach ($employees as $employee) {
if (preg_match('/^([A-Za-z]+)(\d+)$/', $employee->staff_id, $matches)) {
$prefix = $matches[1];
$number = (int)$matches[2];
if ($staffNumbers === null || $number > $staffNumbers) {
$staffNumbers = $number;
}
}
}
$staffNumbers = $staffNumbers+1;
@endphp
{{ trans('file.Employee') }}
{{ trans('file.Company') }}
{{ __('End Of Contract') }}
{{ trans('file.Status') }}
{{ trans('file.action') }}