diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 0840c7c..34ef8fc 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -181,10 +181,17 @@ class HomeController extends Controller }); if (old('dn')) - return view('dn') + return view('frame') + ->with('subframe','dn') ->with('bases',$bases) ->with('o',config('server')->fetch($dn=Crypt::decryptString(old('dn')))) ->with('dn',$dn); + + elseif (old('frame')) + return view('frame') + ->with('subframe',old('frame')) + ->with('bases',$bases); + else return view('home') ->with('bases',$bases) diff --git a/resources/views/dn.blade.php b/resources/views/frame.blade.php similarity index 54% rename from resources/views/dn.blade.php rename to resources/views/frame.blade.php index e95a435..3b3c76a 100644 --- a/resources/views/dn.blade.php +++ b/resources/views/frame.blade.php @@ -1,18 +1,7 @@ @extends('architect::layouts.app') -{{-- -@section('htmlheader_title') - @lang('Home') -@endsection - -@section('page_title') -@endsection -@section('page_icon') -@endsection ---}} - @section('main-content') - @include('frames.dn') + @include('frames.'.$subframe) @endsection @section('page-scripts')