コード例 #1
0
 public static function getImage($id)
 {
     return Employee::find($id)->picture;
 }
コード例 #2
0
<?php

use App\Models\People\Employee;
$sentTo = Employee::find($employee_id)->email;
$employee = Employee::find($employee_id);
?>
<style>
	h1 {text-align:center; margin-top:7px; margin-bottom:7px;}
	.fs-title {font-size:20px; margin-top:5px; margin-bottom:7px;}
	h3 { text-align: left; margin-left: 20px; }
	
	.container { text-align: center; }
	.col { width: 86%; display: inline-block; margin: 0 10px; background: #fff; border: 1px solid #000; }
	.reps-only { width: 86%; }
	
	label { display: table-cell; font-weight: bold; padding: 0 10px; width: 180px;text-align: right; }
	p { display: table-cell; margin-top: 0; margin-bottom:3px; margin-left: 10px;}
	
	.vert-margins { padding-top: 15px; padding-bottom: 15px; }
	
	@media screen and (max-width: 670px) {
		.col { width: 95%; margin: 0; padding: 0; }
	}
</style>
<div>
	<h2>Thank you!</h2>
	<h2>Your employment app has been submitted.</h2>
	<p><span class="red">{{ $employee->name }}</span> at the <a class="red" href="https://www.reedsmetals.com/locations/{{ strtolower( str_replace(' ', '-', $location->name) ) }}">{{ $location->name }}, {{ shorten_state( $location->region ) }}</a> store has received your application and will contact you if you selected for an interview. If you do not hear back within 2 weeks, unfortunately we were unable to find a place for your talent on our team.</p>
	<p>If you need to change your application you may contact your HR representative directly at:</p>
	<ul>
		<li class="no-list-style"><a class="red" href="mailTo:{{ $employee->email }}">{{ $employee->email }}</a></li>
コード例 #3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     $employee = Employee::find($id);
     if ($employee && $employee->delete()) {
         return Response::json('success', 200);
     } else {
         return Response::json('error', 400);
     }
 }