@php ($headerOption = [
'title' => $module,
'header_button' => $permission['create'] ? 'add Add New' : ''
])
@extends('admin.layouts.layout', $headerOption)
@section('css')
@endsection
@section('main')
-
{{$tour_details->file_name}}
@php($structure = \App\Helpers\Helper::getTourInfoStructureRecursive($tour_details->id,0))
@if(count($structure)>0)
@foreach($structure as $stkey=>$struc)
-
@if($struc['file_type']=="2")
{{$struc['name']}}
@elseif(($struc['file_type']=="3") && !empty($struc['link']))
{{$struc['name']}}
@elseif($struc['file_type']=="1")
{{$struc['name']}} sync
@else
{{$struc['name']}}
@endif
@if($permission['edit'])
create
@endif
@if($permission['destroy'])
delete
{!! Form::open([
'method' => 'DELETE',
'route' => [
$routePrefix . '.destroy',
$struc['id']
],
'style'=>'display:inline',
'id' => 'delete-form-' . $struc['id']
]) !!}
{!! Form::close() !!}
@endif
@if(count($struc['child'])>0)
@include('admin.manage-menu.child_structure',['data' => $struc['child'],'permission'=>$permission,'routePrefix'=>$routePrefix])
@endif
@endforeach
@else
No record Found
@endif
@endsection
@section('scripts')
@endsection