Attendize/resources/views/Shared/Layouts/Master.blade.php

149 lines
4.5 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<!--
_ _ _ _
/\ | | | | | (_)
/ \ | |_| |_ ___ _ __ __| |_ _______ ___ ___ _ __ ___
/ /\ \| __| __/ _ \ '_ \ / _` | |_ / _ \ / __/ _ \| '_ ` _ \
/ ____ \ |_| || __/ | | | (_| | |/ / __/| (_| (_) | | | | | |
/_/ \_\__|\__\___|_| |_|\__,_|_/___\___(_)___\___/|_| |_| |_|
-->
<title>
@section('title')
Attendize ::
@show
</title>
<!--Meta-->
@include('Shared.Partials.GlobalMeta')
<!--/Meta-->
<!--JS-->
{!! HTML::script(CDN_URL_STATIC_ASSETS.'/vendor/jquery/jquery.js') !!}
<!--/JS-->
<!--Style-->
{!! HTML::style(CDN_URL_STATIC_ASSETS.'/assets/stylesheet/application.css') !!}
<!--/Style-->
@yield('head')
</head>
<body class="attendize">
@yield('pre_header')
<header id="header" class="navbar ">
<div class="navbar-header">
<a class="navbar-brand" href="javascript:void(0);">
<img style="width: 40px;" class="logo" alt="Attendize" src="{{asset('assets/images/logo.svg')}}"
onerror="this.src='{{asset('assets/images/logo-white-50.png?v')}}'"/>
</a>
</div>
<div class="navbar-toolbar clearfix">
@yield('top_nav')
<ul class="nav navbar-nav navbar-right">
<li class="dropdown profile">
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">
<span class="meta">
<span class="text ">{{isset($organiser->name) ? $organiser->name : $event->organiser->name}}</span>
<span class="arrow"></span>
</span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="{{route('showCreateOrganiser')}}">
<i class="ico ico-plus"></i>
Create Organiser
</a>
</li>
@foreach($organisers as $org)
<li>
<a href="{{route('showOrganiserDashboard', ['organiser_id' => $org->id])}}">
<i class="ico ico-building"></i> &nbsp;
{{$org->name}}
</a>
</li>
@endforeach
<li class="divider"></li>
<li>
<a data-href="{{route('showEditUser')}}" data-modal-id="EditUser"
class="loadModal editUserModal" href="javascript:void(0);"><span class="icon"><i
class="ico-user"></i></span>My Profile</a>
</li>
<li class="divider"></li>
<li><a data-href="{{route('showEditAccount')}}" data-modal-id="EditAccount" class="loadModal"
href="javascript:void(0);"><span class="icon"><i class="ico-cog"></i></span>Account
Setting</a></li>
<li class="divider"></li>
<li><a href="{{route('logout')}}"><span class="icon"><i class="ico-exit"></i></span> Sign Out</a></li>
</ul>
</li>
</ul>
</div>
</header>
@yield('menu')
<!--Main Content-->
<section id="main" role="main">
<section class="container-fluid">
<div class="page-title">
<h1 class="title">@yield('page_title')</h1>
</div>
<!-- header -->
<div class="page-header page-header-block row">
<div class="row">
@yield('page_header')
</div>
</div>
<!--/ header -->
<!--Content-->
@yield('content')
<!--/Content-->
</section>
<!--To The Top-->
<a href="#" style="display:none;" class="totop"><i class="ico-angle-up"></i></a>
<!--/To The Top-->
</section>
<!--/Main Conent-->
<!--JS-->
{!! HTML::script('assets/javascript/backend.js') !!}
<script>
$(function () {
$.ajaxSetup({
headers: {
'X-CSRF-Token': "<?php echo csrf_token() ?>"
}
});
});
@if(!Auth::user()->first_name)
setTimeout(function () {
$('.editUserModal').click();
}, 1000);
@endif
</script>
<!--/JS-->
@yield('foot')
</body>
@include('Shared.Partials.GlobalFooterJS')
</html>