Professional Documents
Culture Documents
Intern Report
Intern Report
We are hereby to declare that, this Internship report has been done by Hayat Reshad and Dawit
Desalegn during the internship time in ASTU ICT center. We also confirm that, the report is only
prepared for our academic requirement not for any other purpose. And all sources of materials
used for the Internship Report have been fully acknowledged.
Place: Hawassa
This Internship Report has been submitted for examination with my approval as a university
mentor.
Signature: --------------------------------
Date: --------------------------------------
i
ACKNOWLEDGEMENTS
First and for most we would like to thank department of electrical and computer engineering for
giving us this opportunity of internship to work and equip our self with practical skills on the
areas we have been learning in the past few years .The internship was a great exposure for us to
discover so many skills and update on our area of study. We really appreciate Adama science
and technology ICT center for accepting us as intern coworkers in the software development
team. We are so grateful for being a part of this team which shows us unlimited support and
commitment during the time we work together. We get lots of work experiences, professional
ethics, technical skills and great courage to pursue new advancements in the field of study. There
were some persons who were on our side without whom the successful completion of our work
would be impossible, among them is our mentor Mr. Selam Alemu who did an incredible job in
guiding and helping us with every move of our way with his effort and contribution.
ii
EXECUTIVE SUMMARY
As we have assigned by the department of electrical and computer engineering to work as an
intern in the offices related to our field of study in order to apply our theoretical knowledge, and
skill that we got from our four years of education in our university, we have been working as an
intern in the ASTU ICT Center software development team from October 2, 2021 until February
17, 2022. The overall analysis of our work experience during the internship program is explained
in this Report Paper.
Most engineering students face difficulties on how to convert the theoretical skills they have to
the real world practical skills, so that they can apply the knowledge and skill they get during their
university experience to solve problems and come up with technological advancements. We have
found this internship program very helpful for us to overcome the above problem and to be
qualified for working in companies effectively.
Our internship report paper work is consisted of 4 main parts. In the first part we briefly
introduce our hosting company ASTU ICT center. We described the company’s brief history,
company’s main vision and aim, main customer of the company and over all organization and
workflow of the company. In the second part of the report we have covered about over all
internship experience including; how we get into the company, in which section we have been
working in, the work task we have been executing in the company, and the challenge we faced in
the work place, how we solve the problem and procedure we have used to complete the task. The
third part describes the benefit we get during the internship program in terms of practical skill,
theoretical knowledge, inter-personal communication skill, team playing skill, leader ship skill
and entrepreneurship skill. The fourth part is about the project we assigned to work on which
includes; problem identified and solution proposed, methods and tools used to achieve the
project, system design, final result and codes of the project. And finally conclusion and
recommendation is written.
iii
LIST OF ACRONYMS
ASTU --------------------------------------------Adama Science and Technology University
ER-----------------------------------------------Entity relationship
HO----------------------------------------------Higher Official
iv
Table of Contents
DECLARATION...............................................................................................................................................i
ACKNOWLEDGEMENTS................................................................................................................................ii
EXECUTIVE SUMMARY................................................................................................................................iii
LIST OF ACRONYMS.....................................................................................................................................iv
LIST OF FIGURES.........................................................................................................................................vii
LIST OF TABLES............................................................................................................................................ix
CHAPTER ONE..............................................................................................................................................1
1. BACKGROUND OF ASTU...........................................................................................................................1
1.1 Historical Overview of ASTU..............................................................................................................1
1.2 Objective, Mission and Vision of ASTU..............................................................................................3
1.3 Service and products of ASTU............................................................................................................4
1.4 Main customers and end users of ASTU............................................................................................4
1.5 Overall Structure and Work Flow of ASTU.........................................................................................5
CHATER TWO...............................................................................................................................................5
2. OVERALL INTERNSHIP EXPERIENCE..........................................................................................................5
2.1 How I get into the company..............................................................................................................5
2.2 Sections in the company we have been working...............................................................................6
2.3 The workflow in this section looks like..............................................................................................6
2.4 The work piece of tasks we have been executing..............................................................................7
2.5 Procedures we have been using while performing our work tasks....................................................7
2.6 How good we have been in performing our work tasks....................................................................8
2.7 Challenges we face during the internship period..............................................................................9
2.8 Measures we have taken to overcome the challenges......................................................................9
CHAPTER THREE........................................................................................................................................10
3. OVERALL BENEFITS GAINED FROM THE INTERNSHIP.............................................................................10
3.1 Improving practical skills..................................................................................................................10
3.2 Upgrading theoretical knowledge....................................................................................................11
3.3 In terms of Interpersonal Communication Skill...............................................................................11
3.4 In terms of Improving team playing skill..........................................................................................12
3.5 In terms of Leadership skill..............................................................................................................12
3.6 In terms of understanding about work ethics related issues...........................................................12
v
3.7 In terms of Entrepreneurship skill...................................................................................................13
CHAPTER FOUR..........................................................................................................................................14
4. PROJECT.................................................................................................................................................14
4.1 ABSTRACT........................................................................................................................................14
4.2 INTRODUCTION...............................................................................................................................14
4.3 PROBLEM STATEMENT....................................................................................................................16
4.4 OBJECTIVES......................................................................................................................................16
4.4.1 General Objectives....................................................................................................................16
4.4.2 Specific Objectives....................................................................................................................16
4.5 SCOPE..............................................................................................................................................17
4.6 METHODOLOGY AND TOOLS...........................................................................................................17
4.6.1 Methodology............................................................................................................................17
4.6.2 Tools.........................................................................................................................................20
4.7 System design..................................................................................................................................21
4.7.1 Database design ER diagram.....................................................................................................21
4.7.2 Database table..........................................................................................................................22
4.7.3 Use case diagram......................................................................................................................23
4.7.4 Use case description.................................................................................................................24
4.7.5 Usecase description using table................................................................................................25
4.7.6 Class Diagram............................................................................................................................27
4.7.8 Sequence Diagram....................................................................................................................28
4.8 Result and discussion.......................................................................................................................31
CHAPTER FIVE............................................................................................................................................37
5. CONCLUSION AND RECOMMENDATION................................................................................................37
5.1 Conclusion.......................................................................................................................................37
5.2 Recommendation to ASTU ICT center..............................................................................................37
5.3 Recommendation to Hawassa University........................................................................................37
References.................................................................................................................................................37
Appendices................................................................................................................................................38
vi
LIST OF FIGURES
Figure 1: ASTU outside View----------------------------------------------------------------1
Figure 4: Logo---------------------------------------------------------------------------------------15
vii
Figure 21: Inviter Creates Invitation Page---------------------------------------------36
viii
LIST OF TABLES
Table 1: use case description for manage account ----------------------------------------25
ix
CHAPTER ONE
1. BACKGROUND OF ASTU
1.1 Historical Overview of ASTU
Adama Science and Technology University (ASTU) were first established in 1993 as NTC,
offering degree and diploma level education in technology fields. Later, the institution was
renamed as NCTTE, a self-explanatory label that describes what the institution used to train back
then candidates who would become technical teachers for TVET colleges/Schools across the
country. In 2003, a new addition to NCTTE came about introduction of business education.
Nonetheless, the new entries were solely meant for similar purposes these graduates were also
expected to help overcome the existing dearth of educators in vocational institutions.
Although it is an institution with a history of only two decades, ASTU is known for its dynamic
past. It has always been responsive to the realization of national policies: training of
technologists at its early stage, and later shifting to training of technical trainers, as well as
1
business educators, to fill the gap in TVETs. Following its inauguration in May 2006 as Adama
University, the full-fledged university started opening other academic programs in other areas an
extension to its original mission.
However, it was not until it was nominated by the Ministry of Education as Center of Excellence
in Technology in 2008 that it opened various programs in applied engineering and technology.
For its realization, it became a university modeled after the German paradigm: it not only
became the only technical university in the nation, but also the only one led by a German
professor.
Notwithstanding closure of some disciplines as per the new vision and mission, the ensuing
three years saw flourishing of graduate programs, of which some (like a few in the undergraduate
program) were exceptional to our university. The same period saw pioneering of the university in
introducing PhD by Research and MA/MSC by Research programs. Before 2008, the university
was stratified into faculties, and ASTU’s reach was limited to its only campus in Adama town.
The university has now extended its reach to Asella, where two of the total seven schools are
located. The faculties at the main campus include: School of Business, School of Engineering
and Information Technologies, School of Humanities and Law, School of Natural Sciences, and
School of Educational Science and Technology Teachers Education. On the other hand, the two
schools in Asella are the School of Agriculture and School of Health and Hospital.
In addition to its main concern (academics), ASTU is also host of research Institutes and
enterprises. In the main campus, apart from the ICDE, there exist two others: the Further
Training Institute FTI and Adama Institute of Sustainable Energy. The sister town where the two
schools are located, Asella, is also host to the Artificial Insemination Institute and Asella model
Agricultural Enterprise.
Following its renaming by the Council of Ministers as Adama Science and Technology
University in May 2011, the university has started working towards the attainment of becoming a
center of excellence in science and technology, thereby allowing for the realization of goals set
in the GTP. To this end, a South Korean has been appointed as President of the University.
Currently, ASTU is setting up a Research Park, in collaboration with stakeholders and other
concerned bodies: one of a kind in the Ethiopian context. The university is also venturing out to
the wider community and is currently engaged in various joint undertakings.
2
1.2 Objective, Mission and Vision of ASTU
Mission
The mission of ASTU is to provide ethical and competent graduates in applied science and
technology through quality education, demand driven research and community service. ASTU
also provides innovative knowledge to support the socio-economic development of the nation.
• Delivering world class education and training in strategically priority science and technology
disciplines based on national economic demand.
• Conducting problem solving applied research to support the productivity and
competitiveness of industries.
• Serving as a center of knowledge and technological adaption, innovation and transfer
Vision
• ASTU aspires to be the first choice in Ethiopia and the premier center of excellence in
applied science and technology in Africa by 2030.
Core Values
Core values of ASTU written below are the operating principles that guide the organizations
internal conduct as well as their Relationship with their customers, partners, and shareholders.
Nurturing diversity
Professional ethics
3
Responsiveness
• Video conference
• University-industry linkages
• Website development
4
1.5 Overall Structure and Work Flow of ASTU
CHATER TWO
2. OVERALL INTERNSHIP EXPERIENCE
In general, the Internship Program allows us to connect theory and practice, to discover how we
can provide a solution to a real-world problem, and to participate in the advancement of modern
technology. We obtained a lot of expertise and technical abilities in web based system
development, application development, and website design throughout our internship program.
We received a fantastic introduction to the professional environment in our subject of study.
5
acceptance letter. On the planned day of October 2, we appeared at the firm and reported the
letter that our institution had sent us. They accept and encourage us to participate in all duties in
order to make the internship program more realistic and beneficial, as promised on the
confirmation form.
Developing application software for the Adama Science and Technology University,
other Universities, governmental companies, non-government companies and also for
individuals as the specification of the customers.
Giving technical support on the software design and development for students in the
university.
6
Figure 3: Workflow of software development team
2.5 Procedures we have been using while performing our work tasks
Before we started our project, we requested our consultant to advise us on how the team has
handled different software development projects. We began completing the jobs in accordance
with the methods that have been in use by the team for a long time. Using the steps listed below,
7
we were able to complete our job.We have achieved our project by using the following
procedures.
Gathering information: First we gathered information about the project title from
guards, employees, and visitors they are invited for different purposes and they give us
how the gate system is manual and very backward.
Preparing proposal: We prepared a proposal for the project. Then we presented our
proposal to our adviser. Our adviser gave us useful comments and suggestions on the
proposal.
System designing: Then we start system design which includes database design,
Software design,,,
Server side design and coding: Next we start server side design and coding. We have
instructed to use a Laravel framework for the project. So we start installing WAMP
server, visual studio code editor to write the codes and configuring the framework on our
computer.
Final presentation: Our final works are evaluated by our adviser and lastly we present
the project for the whole team. We have been evaluated and suggested by the developers.
We got so many constructive comments which provide us advanced insight on the area of
study.
8
We were first concerned that we lacked practical experience because it was our first time
working in such an environment. However, once we got started, we were able to finish the job
and solve the company's problem. We reviewed various user guides and conducted an internet
search for information on new issues that arose during the procedure. We had a wonderful
relationship with our adviser, and he routinely gave us feedback on our work, which we used to
remedy our errors and get positive results.
We also developed our teamwork skills by actively participating in group projects. This
increased our personal confidence in issue solving, as well as our ability to come up with fresh
ideas and gain problem-solving experience while at work. We were also urged to be on time
when completing our tasks. Our proposal was presented to our advisor as well as the software
development team. According to their comments, they praised the effort we put in throughout the
internship and our project's accomplishment.
9
CHAPTER THREE
3. OVERALL BENEFITS GAINED FROM THE INTERNSHIP
Throughout the four months of our work at Adama Science and Technology University, we
acquired a lot of benefits from the internship experience. This internship program was crucial in
helping us gain confidence. We presented our final project to the entire crew and received
positive feedback. We also inquired about other people's areas of expertise. As a result, we were
able to communicate with a variety of employees. Furthermore, the internship provided us with
the opportunity to communicate with people from all levels of the company's hierarchy, and such
trends have helped us gain significant professional experience.
The overall benefits that we have gained are grouped into different categories. Such as:
10
After all when we join the real world, we will not be new for real world problems and
the internship program was a great opportunity in improving practical skills.
As a result:-
11
pre requested for many positions in an organization Therefore, the internship improves
the interpersonal communication skills.
Punctuality
Loyalty
12
Honesty
Cooperation
Accountability
Responsibility
3.7 In terms of Entrepreneurship skill
Entrepreneurship skills are making certain individuals able to create a new set of ideas
that may help in the technological development.
-Self confidence
-Self-motivation
-Time management, so that the internship has a great role to improve these
entrepreneur skills.
13
CHAPTER FOUR
4. PROJECT
4.1 ABSTRACT
This study aimed to develop and evaluate an Automated Gate Pass Management System for
ASTU(Adama Science and Technology University) designed to keep track of the employees,
visitors and resources(items) they take passing the campus gate. Under the System Development
Life Cycle (SDLC), we have methodologies used to plan, design, create, deploy, and test the
system. Also, PHP, MySQL, and XAMPP were utilized as software in system development and
implementation. On the other hand, the system was evaluated with a rate of usability and
functionality. The system helps manages in monitoring and facilitating records to anyone who
passes by the university premises. Thus, the system contributes in securing and monitoring the
employees, visitors and resources; thereby generating due and timely feedback to the
administration.
4.2 INTRODUCTION
With the rise of technology in the 21st century, new and creative gadgets and applications were
developed to ease life. Still, university safety is the most significant component to precede
research with advanced technology. Adama Science and Technology University has a pass slip
operation/policy implemented, which aims to secure the employees' safety and record
information, monitor the employees going out of the gate status, and record the visitors' visit.
However, using the manual system of recording, it has been noted that it could lead to losing
files and documents when the administration needs information. Thus, this study aimed to
develop and design an ASTU Automated Gate Pass Management System, centralizing the record
of employees going out, visitors coming to the campus and resources they take.
14
aimed to enhance and upgrade the existing system by increasing its efficiency and effectiveness
by reducing the manual work. Further, the software improves the working methods by replacing
the current manual system with the computer-based system. As safety and security is a concern,
it stressed that the consensus arising from the professional security community is that university
administrators should invest in sophisticated technologies that help university staffs to decrease
violence via a multi-staged approach to safety.
It is evident at the cited studies that using a traditional-manual process may lead to inconsistency
of information and difficulty in generating records. ASTU manual gate pass slip has no available
database and system to systematically and conveniently perform transactions. In so far, the
institution has never had an existing system duly integrated with an electronic gate pass slip.
With this, the main challenges faced by the ASTU security guards are the fragmented massive of
paper-based pass slip records of the faculty and staff. Besides, it has been noted that the
concerned personnel consumes time and difficulty in generating records for decision-making of
the administration. Hence, we, having internship experience in ASTU are doing our best and
looks forward to optimizing ASTU’s quality services.
Automated Gate Pass Management System aimed to modernize the manual pass slip system,
which will be considered a technology to address the gap using PHP, XAMPP, and MySQL.
Thus, this study is deemed to address the present situation in the Gate Pass Management Present
System, designed to manage records, particularly in facilitating information for an employee,
visitors and resources they taken passing the school premises. Records are accessed to an
informed decision making of the administration.
15
4.3 PROBLEM STATEMENT
There lacks a digital solution for Gate pass and record keeping in most institutions for their
security personnel at the gates which are the entry points of the institutions. Especially at the
point where employees and visitors are increasing, there arises the need for a digital record
keeping system to enable easy monitoring and allow the security personnel to have information
of who is within the institution. Especially for visitors, there is no way of knowing who and
when and by who was invited. Regarding in register does not mean that information is true.
There is no authentication process. With lack of a digital solution, information has to be entered
manually and thus making it easy for data loss.
4.4 OBJECTIVES
4.4.1 General Objectives
To develop an Automated Gate Pass Management System designed to monitor and facilitate the
process and information of the employees, visitors and resources they take passing campus gate.
1. To design and develop a system with the following features and modules: (USER Satisfaction
level, easy inquiry, varies type of service, time efficiency)
2. To integrate and implement ASTU Automated Gate Pass Management System supported with
PHP, XAMPP, and MySQL;
16
4.5 SCOPE
The introducing system, gate pass management system, which is going to be implemented for
Adama University ICT center will automate the operation of gate pass system of the center. This
web based gate pass management system provides users (HR,HO, guard and administrator) to
get registered on the web platform and gives the access to write gate detail to administrator. It is
supported with a well-designed database. A friendly user interface is provided to facilitate
different services such as login, generate, submit and update report. Although this system is
designed for gate pass security for employee, visitors and resources they take so, we can make it
available to all entry and exit since it is flexible.
• Data Gathering
Before we start the project we gathered information by interviewing the workers in the
ICT center and security officers of the compass about the problem that they are facing
on not using web based gate pass management system and how the normal gate pass
process held in the company.
• Requirements Analysis
17
Based on the data we gathered and information that have given to us by our advisor,
we have set certain requirements that our project must meet. These are:-
1. Technical requirements
3. Non-functional requirements
What pertains to the technical aspects that a system must fulfill is what is termed as a technical
requirement. The following are the technical requirements for the proposed system:
Architecture
The system will provide services to users through the gate personnel who will capture their
details in the system. Scalability The system will allow for addition of users.
Security
The system will be secured from unauthorized access by use of a login form as an entry point to
the contents of the system. Only valid login credentials will allow access to the system.
Availability
The system will be available for access at any time of the day, every day of the year.
Portability
The system can only be accessed by the institution security personnel from the devices it has
been installed in.
2. Functional requirements
Detail description of what the system can do as well as input and Output of the System with
respect to role of the actor. The product consists of the following the functional requirements
based on the role of the actors.
18
- Can add a record of HRM,
- Can add a record of Guard,
- Can add a record of HO (Higher Official)
- Responsible for any error in the system
- Admin should keep tracking each person and different resources entering and exiting
the
University compound.
B. HRM (Human Resources Manager): is part of an organization who is dealing with
each guard.
- The HRM needs to keep track of guards and areas under his supervision.
- The manager can view entry gate details, Guard details.
- They will see any unwanted activity restrict the entry of a person or vehicle
C. Guard (security officer): Guard is the basic unit of the Gate Pass Management system.
- Guard can view entry gate details, whether a gate pass is approved or not. They
would allow only if the gate pass is approved.
D. They will see any unwanted activity restrict the entry of a person or related resources.
HO (Higher Official): can add a record of visitors.
- prepare invitations.
3. Non-functional requirements
Non-functional requirements are the criteria used to judge the system rather than the system’s
behavior. They include:
Security requirements
Entry to the system is limited only to authorized registered users. The users will also have
restrictions on what content they can edit or delete. The administrator has unlimited access to add
users and content, edit it and even delete accounts and content deemed useless.
Performance requirements
The system user interface is friendly and appealing and accomplishes the minimum required
actions. Reliability
19
The system can be relied upon to do what it is expected since its underlying architecture is well-
built. Maintainability
The system is coded in php and MySQL for the backend and HTML5, CSS for the frontend.
These programming and markup languages are easy to understand hence ensuring that anyone
competent enough can modify the system accordingly. This is further supported by comments in
the code explaining how complex parts of the code work.
Physical Environment
The system is deployed or installed on the server side script but for more feature we recommend
that the system to deploy on Adama university server that is free from any disaster.
4.6.2 Tools
Hardware Tools
• Personal computer (PC) or laptop: almost all tasks of our project are
performed on computer.
• Flash: required for data movement.
Software Tools
20
4.7 System design
System design is a process through which requirement are translated in to
representation of software. Initially the representation provides the general view of
software, subsequent refinement leads to design representation that is very close to
source code .Design is a place where quality assured in the software development .It
provides us with representation of software that can be assessed for quality this is the
only way that can accurately translated the customers’ requirements in to finished
software product.
The approach we used in system design is unified modeling language (UML) in which
it depends on the visual modeling of the system. Visual modeling is the process of
taking the information from the modeling and displaying it graphical using some sort
of standard set of graphical element that includes:-
Figure 5: ER diagram
21
4.7.2 Database table
A table is a collection of related data held in a table format within a database. It consists
of columns and rows.
In relational databases, and flat file databases, a table is a set of data elements (values) using a
model of vertical columns (identifiable by name) and horizontal rows, the cell being the unit
where a row and column intersect. A table has a specified number of columns, but can have any
number of rows. Each row is identified by one or more values appearing in a particular column
subset. A specific choice of columns which uniquely identify rows is called the primary key.
"Table" is another term for "relation"; although there is the difference in that a table is usually
a multisite (bag) of rows where a relation is a set and does not allow duplicates. Besides the
actual data rows, tables generally have associated with them some metadata, such
as constraints on the table or on the values within particular columns.
22
Figure 6: Database table
23
Figure 7: Usecase diagram
System admin
Guard
Manager (HR)
HO (Inviter)
24
Log in
Manage account
View report
Restrict entry
Add visitor
Invite visitor
25
Use case name View report
Participating actor Manager and guard
Description This use case helps Every user to view out a
report
Entry condition Every user must be login in to the system.
Exit condition When reports are viewed by users
Table 3: use case description for view report
26
Table 6: use case description for entry gate detail
Class diagram is a static diagram. It represents the static view of an application. Class diagram is
not only used for visualizing, describing, and documenting different aspects of a system but also
for constructing executable code of the software application.
Class diagram describes the attributes and operations of a class and also the constraints imposed
on the system. The class diagrams are widely used in the modeling of object oriented systems
because they are the only UML diagrams, which can be mapped directly with object-oriented
languages.
27
Figure 8: Class diagram
28
Figure 9: Admin Sequence Diagram
29
Figure11: Guard Sequence Diagram
30
4.8 Result and discussion
The final result of this project was a system that enables ASTU Gate Pass management
system get registered and login to designed for monitoring and maintaining employee and
visitor records at the time of entry and exists to their respective premises. It is also used for
preparing digital identification card and tracking the overall duration of the entrance and
exits in a web based manner. We have used larval framework to do the project.
Generally It is an online web- based it does not require a big infrastructure. This system
can be run just add it to the main system because our main dealing with Gate Pass
management system is online.
The following figure shows login page which is used to authenticate users:
31
Figure14: Guard home page
The following figure shows the gatepass waiting to scan the barcode;
32
Figure15: Gatepass page waiting to scan the barcode
The following figure shows the gatepass scans the employee barcode:
33
The following figure shows when the gatepass scans incorrect barcode;
The following figure shows how the Guard view request and visitor list.
34
Figure 19: Guard views invitation list
The following figure shows how the HRM view gatepass report.
35
Figure 21: HO create invitation
36
CHAPTER FIVE
5. CONCLUSION AND RECOMMENDATION
5.1 Conclusion
Based on the record in the system analysis stage, the manual pass slip's current technical system
was time-consuming for recording the file, inconsistency, and difficulty generating reports.
ASTU Automated Gate Pass Management System is then believed as a very convenient way to
store, manipulate, analyze, retrieve, and track the institution's information on gate pass. It can
generate real-time data as needed and adaptable to new or modified information requirements.
Thus, it is more practical and convenient for the system to be supported on its full
implementation. Lastly, the system conforms to usability and functionality standards, which
provides ease in decision-making among top management
References
37
Appendices
<?php
namespace App\Http\Controllers\Guard;
use App\Http\Requests;
use App\Http\Requests\CreateGatepassRequest;
use App\Http\Requests\UpdateGatepassRequest;
use App\Repositories\GatepassRepository;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Lang;
use App\Models\Gatepass;
use App\Models\Employee;
use App\Models\Gate;
use Flash;
use Prettus\Repository\Criteria\RequestCriteria;
use Response;
use Auth;
use Sentinel;
38
class GatepassController extends InfyOmBaseController
private $gatepassRepository;
$this->gatepassRepository = $gatepassRepo;
/**
* @return Response
*/
39
$this->gatepassRepository->pushCriteria(new RequestCriteria($request));
$gatepasses = $this->gatepassRepository->all();
return view('guard.gatepasses.index')
->with('gatepasses', $gatepasses);
/**
* @return Response
*/
return view('guard.gatepasses.create');
/**
40
* @return Response
*/
$input = $request->all();
$gatepass = $this->gatepassRepository->create($input);
return redirect(route('guard.gatepasses.index'));
/**
41
* @return Response
*/
$gatepass = $this->gatepassRepository->findWithoutFail($id);
if (empty($gatepass)) {
return redirect(route('gatepasses.index'));
/**
* @return Response
42
*/
$gatepass = $this->gatepassRepository->findWithoutFail($id);
if (empty($gatepass)) {
return redirect(route('gatepasses.index'));
/**
* @return Response
43
*/
$gatepass = $this->gatepassRepository->findWithoutFail($id);
if (empty($gatepass)) {
return redirect(route('gatepasses.index'));
return redirect(route('guard.gatepasses.index'));
/**
44
* Remove the specified Gatepass from storage.
* @return Response
*/
$error = '';
$model = '';
$confirm_route = route('guard.gatepasses.delete',['id'=>$id]);
$sample = Gatepass::destroy($id);
45
return redirect(route('guard.gatepasses.index'))->with('success',
Lang::get('message.success.delete'));
// For Barcode
$employee = Employee::where('id_number',$request->barcode)->first();
$result = "";
if (empty($employee)) {
46
}else{
$logged_user = Sentinel::getUser()->id;
$gate_id = Sentinel::getUser()->gate_id;
'emp_id'=> $employee->id,
]);
$gatepass->save();
47
return response()->json(['employee'=>$result]);
48