@extends('admin.layouts.main')
@section('title','Tour List')
@section('content')
@if(Session::has('message'))
{{Session::get('message')}}
@endif
Title |
Detail |
Location |
Image |
Edit |
Delete |
@foreach($travel as $travels)
{{$travels->title}} |
{{$travels->detail}} |
{{$travels->location}} |
 |
@if(!Auth::guest())
@if(Auth::user()->id==$travels->owner_id)
|
{!! Form::open(['method'=>'DELETE','route'=>['supertravel.destroy',$travels->id]]) !!}
{!! Form::submit('DELETE',$attribute=['class'=>'btn btn-danger']); !!}
{!! Form::close() !!}
@else
| |
|
@endif
@endif
@endforeach
@endsection