<?php

use App\Models\People\Employee;
use App\Models\People\JobPosting;
$sentTo = Employee::find($employee_id)->email;
$employee = Employee::find($employee_id);
$jobPosting = JobPosting::find($job_posting_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>
	<h1 style="text-align: center;margin-top: 7px;margin-bottom: 7px;">Employment Application</h1>
	<h1 style="text-align: center;margin-top: 7px;margin-bottom: 7px;">Application for: {{$name}}  (Application ID# {{ $id }})</h1>
	<h1 style="text-align: center;margin-top: 7px;margin-bottom: 7px;">Sent to: {{ $employee->name }} at {{ $sentTo }}</h1>
</div>
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $class = JobPosting::find($id);
     if ($class->delete()) {
         return Response::json('success', 200);
     } else {
         return Response::json('error', 400);
     }
 }