<?php use App\Models\Inventory\Color; use App\Models\People\Employee; $wall_color = Color::find($wall_color_id); $roof_color = Color::find($roof_color_id); $trim_color = Color::find($trim_color_id); $sentTo = Employee::find($employee_id)->email; $employee = Employee::find($employee_id); $webquoteID = $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>{{ $building_type }} Quote</h1>
public function detach() { $location = Location::find(Request::input('location')); $color = Color::find(Request::input('color')); foreach (Gauge::all() as $gauge) { $locationColorGauge = LocationColorGauge::where('location_id', '=', $location->id)->where('color_id', '=', $color->id)->where('gauge_id', '=', $gauge->id); if ($locationColorGauge->first()) { $locationColorGauge->first()->delete(); } } return "success"; }