/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index($id)
 {
     //
     $view = \View::make('home.extar');
     if ($id != null) {
         $extar = Extar::where('id', $id)->get()->first();
         $extar->body = str_replace(Config::get('image.name'), Config::get('image.host'), $extar->body);
         $extar->body = str_replace('/public/filemanager/userfiles/', Config::get('image.host'), $extar->body);
         $view->with('extar', $extar);
     }
     return $view;
 }
<?php

use Illuminate\Support\Facades\Auth;
use App\Extar;
$extars = Extar::where('status', '1')->get();
$auth = Auth::check();
?>

<style type="text/css">
  button.btn.btn-default.dropdown-toggle{
    background: transparent;
    color: #fff;
    border: 1px solid #ccc;
    float: right;
  }
  .dropdown-menu{
    min-width: 225px;
  }
  .btn-group>.btn:last-child:not(:first-child), .btn-group>.dropdown-toggle:not(:first-child) {
     border-radius: 4px; 
     border-radius: 4px; 
  }
  .pull-right{
    right: 3%;
    position: relative;
    padding-top: 5px;
  }
  .dropdown-menu.extar{
    min-width: 100px;
  }
</style>
						</tr>
						<tr>
							<td colspan="5" align="right">ค่าจัดส่ง</td>
							<td class="text-center"><span class="money">{{ $order->ems }}</span></td>
						</tr>
						<tr>
							<td colspan="5" align="right">ราคาสุทธิ</td>
							<td class="text-center" style="background: #DEE2E3;">
								<span class="money">{{ $order->total_grand  }}</span></td>
						</tr>
					</tbody>
				</table>
				<div class="row">
					<div class="col-sm-6 col-sm-offset-3">
						<?php 
$extar = \App\Extar::where('id', 1)->first();
?>
		    			{!! $extar->body !!}
					</div>
				</div>

			    
			</div>
		</div>
	</div>
</section>

</form>

<script type="text/javascript">
angular.module('myApp', ['ui.bootstrap']).config(function($interpolateProvider) {
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $extar = Extar::where('id', $id)->get()->first();
     if ($extar != null) {
         $extar->delete();
         return Response::json(array('result' => true, 'data' => $extar));
     }
     return Response::json(array('result' => false, 'data' => $extar));
 }