@extends('admin/layouts/default')
{{-- Page title --}}
@section('title')
Manager Access Request
@parent
@stop

{{-- page level styles --}}
@section('header_styles')
<!--page level css -->

@include('admin.access_request_manager.includes.user_access_header')

<!--end of page level css-->
@stop

{{-- Page content --}}
@section('content')
<section class="content-header">
    <h1>Manager Access Request</h1>
    <ol class="breadcrumb">
        <li>
            <a href="{{ route('admin.dashboard') }}">
                <i class="livicon" data-name="home" data-size="14" data-color="#000"></i>
                Dashboard
            </a>
        </li>
        <li class="active">Manager Access Request List</li>
    </ol>
</section>


<section class="content">
    <div class="row">
        <div class="col-md-12">
            @if ($message = Session::get('success'))
            <div class="alert alert-success alert-dismissable">
                <button type="button" class="close" data-dismiss="alert">×</button>
                <p>{{ $message }}</p>
            </div>
            @endif
            @if ($message = Session::get('error'))
            <div class="alert alert-danger alert-dismissable">
                <button type="button" class="close" data-dismiss="alert">×</button>
                <p>{{ $message }}</p>
            </div>
            @endif
            @if($page == "access_request_new")
            <form action="/admin/access_request_manager_detail/access_request_new" method="Get" enctype="multipart/form-data">
                @elseif($page == "access_request_process")
                <form action="/admin/access_request_manager_detail/access_request_process" method="Get" enctype="multipart/form-data">
                    @elseif($page == "access_list_complete")
                    <form action="/admin/access_request_manager_detail/access_list_complete" method="Get" enctype="multipart/form-data">
                        @else
                        <form action="{{ route('access_request_manager.index') }}" method="Get" enctype="multipart/form-data">
                            @endif
                            @csrf
                            <div class="form-group">
                                <div class="input-group mb-5">
                                    <input type="text" name="search" autocomplete="off" class="form-control" placeholder="Search for..." value="{{ $search }}">
                                    <span class="input-group-btn">
                                        <button class="btn btn-info" type="submit" style="padding: 9px;"><span class="glyphicon glyphicon-search"> Go</span></button>
                                    </span>
                                </div><!-- /input-group -->
                            </div>
                        </form>

                        @if($page == "access_request_new")
                        @include('admin.access_request_manager.includes.access_request_new')

                        @elseif($page == "access_request_process")
                        @include('admin.access_request_manager.includes.access_request_process')

                        @elseif($page == "access_list_complete")
                        @include('admin.access_request_manager.includes.access_request_complete')

                        @else
                        @include('admin.access_request_manager.includes.access_request_new')
                        @include('admin.access_request_manager.includes.access_request_process')
                        @include('admin.access_request_manager.includes.access_request_complete')
                        @endif
        </div>
    </div>


</section>

@stop

{{-- page level scripts --}}
@include('admin.access_request_manager.includes.user_access_footer')
@section('footer_scripts')
@stop