Skip to content

Instantly share code, notes, and snippets.

@phanngoc
phanngoc / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@extends ('layouts.master')
@section ('head.title')
{{trans('messages.list_group')}}
@stop
@section ('head.css')
<link href="plugins/datatables/dataTables.bootstrap.css" rel="stylesheet" type="text/css" />
@stop
@section('body.content')
@phanngoc
phanngoc / code-1.htm
Last active August 29, 2015 14:23 — forked from bennadel/code-1.htm
<!DOCTYPE HTML>
<html>
<head>
<title>Enable And Disable jQuery Event Handlers</title>
<style type="text/css">
#modal {
background-color: #FAFAFA ;
border: 1px solid #C0C0C0 ;
display: none ;
<?php
namespace App\Http\Controllers;
use App\Calendar;
use App\Employee;
use App\Http\Requests\AddFeatureRequest;
use Illuminate\Http\Request;
class CalendarController extends AdminController {
@extends ('layouts.master')
@section ('head.title')
{{trans('messages.list_group')}}
@stop
@section('body.content')
<script type="text/javascript" src="{{ Asset('jqueryganttview/jquery-1.4.2.js') }}"></script>
<script type="text/javascript" src="{{ Asset('jqueryganttview/date.js') }}"></script>
<?php namespace App;
use Illuminate\Database\Eloquent\Model;
class NoteStatus extends Model {
protected $table = 'note_statuses';
protected $fillable = [
'candidate_id',
@extends ('layouts.master')
@section ('head.title')
{{trans('messages.list_group')}}
@stop
@section ('head.css')
<link href="plugins/datatables/dataTables.bootstrap.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{{ Asset('jquery-accessible-tabs/jquery.accTabs.min.js') }}" ></script>
<link rel="stylesheet" type="text/css" href="{{ Asset('jquery-accessible-tabs/jquery-accessible-tabs.css') }}">
<?php
namespace App\Http\Controllers;
use App;
use App\Employee;
use Excel;
use App\Device;
use App\InformationDevice;
foreach ($interviews as $key => $value) : ?>
<tr>
<input type="hidden" name="id" value="{{ $value->id }}"/>
<td><?php echo $index; $index++; ?></td>
<td>{{ $value->candidate()->first()->last_name." ".$value->candidate()->first()->first_name }}</td>
<td>
<?php
$positions = $value->candidate()->first()->positions()->get();
foreach ($positions as $k_p => $v_p) {
echo "<p>".$v_p->name."</p>";
<?php
namespace App\Http\Controllers;
use App;
use App\Employee;
use Excel;
use App\Device;
use App\InformationDevice;