first commit
This commit is contained in:
		
							
								
								
									
										23
									
								
								resources/views/partials/customer/content.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								resources/views/partials/customer/content.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
<!-- Content Wrapper. Contains page content -->
 | 
			
		||||
<div class="content-wrapper">
 | 
			
		||||
    <!-- Content Header (Page header) -->
 | 
			
		||||
    <section class="content-header content-center">
 | 
			
		||||
        <h1>
 | 
			
		||||
            @yield('title')
 | 
			
		||||
            @yield('new_button')
 | 
			
		||||
        </h1>
 | 
			
		||||
    </section>
 | 
			
		||||
 | 
			
		||||
    <!-- Main content -->
 | 
			
		||||
    <section class="content content-center">
 | 
			
		||||
        @include('flash::message')
 | 
			
		||||
 | 
			
		||||
        @yield('content')
 | 
			
		||||
    </section>
 | 
			
		||||
    <!-- /.content -->
 | 
			
		||||
</div>
 | 
			
		||||
<!-- /.content-wrapper -->
 | 
			
		||||
 | 
			
		||||
<script type="text/javascript">
 | 
			
		||||
    $('div.alert').not('.alert-important').delay(3000).fadeOut(350);
 | 
			
		||||
</script>
 | 
			
		||||
							
								
								
									
										3
									
								
								resources/views/partials/customer/footer.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								resources/views/partials/customer/footer.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
<footer class="main-footer">
 | 
			
		||||
    <strong>{{ trans('footer.powered') }}</strong>: <a href="https://akaunting.com">{{ trans('footer.software') }}</a>
 | 
			
		||||
</footer>
 | 
			
		||||
							
								
								
									
										74
									
								
								resources/views/partials/customer/head.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								resources/views/partials/customer/head.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,74 @@
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="utf-8">
 | 
			
		||||
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 | 
			
		||||
    <!-- Tell the browser to be responsive to screen width -->
 | 
			
		||||
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
 | 
			
		||||
 | 
			
		||||
    <title>@yield('title') - @setting('general.company_name')</title>
 | 
			
		||||
 | 
			
		||||
    <!-- Tell the browser to be responsive to screen width -->
 | 
			
		||||
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
 | 
			
		||||
    <!-- Bootstrap 3.3.6 -->
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/bootstrap/css/bootstrap.min.css') }}">
 | 
			
		||||
    <!-- Font Awesome -->
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('public/css/font-awesome.min.css') }}">
 | 
			
		||||
    <!-- Ionicons -->
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('public/css/ionicons.min.css') }}">
 | 
			
		||||
    <!-- Theme style -->
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/dist/css/AdminLTE.min.css') }}">
 | 
			
		||||
    <!-- AdminLTE Skins -->
 | 
			
		||||
    @if (setting('general.admin_theme', 'skin-green-light') == 'skin-green-light')
 | 
			
		||||
        <link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/dist/css/skins/skin-green-light.min.css') }}">
 | 
			
		||||
    @else
 | 
			
		||||
        <link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/dist/css/skins/skin-black.min.css') }}">
 | 
			
		||||
        <link rel="stylesheet" href="{{ asset('public/css/skin-black.css') }}">
 | 
			
		||||
    @endif
 | 
			
		||||
    <!-- Data Tables -->
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/plugins/datatables/dataTables.bootstrap.css') }}">
 | 
			
		||||
    <!-- App style -->
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('public/css/app.css') }}">
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('public/css/akaunting-green.css') }}">
 | 
			
		||||
 | 
			
		||||
    <!-- Select2 -->
 | 
			
		||||
    <link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/plugins/select2/select2.min.css') }}">
 | 
			
		||||
    
 | 
			
		||||
    <link rel="shortcut icon" href="{{ asset('public/img/favicon.ico') }}">
 | 
			
		||||
    
 | 
			
		||||
    @yield('css')
 | 
			
		||||
 | 
			
		||||
    @yield('stylesheet')
 | 
			
		||||
 | 
			
		||||
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
 | 
			
		||||
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
 | 
			
		||||
    <!--[if lt IE 9]>
 | 
			
		||||
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
 | 
			
		||||
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
 | 
			
		||||
    <![endif]-->
 | 
			
		||||
 | 
			
		||||
    <!-- jQuery 2.2.3 -->
 | 
			
		||||
    <script src="{{ asset('vendor/almasaeed2010/adminlte/plugins/jQuery/jquery-2.2.3.min.js') }}"></script>
 | 
			
		||||
    <!-- Bootstrap 3.3.6 -->
 | 
			
		||||
    <script src="{{ asset('vendor/almasaeed2010/adminlte/bootstrap/js/bootstrap.min.js') }}"></script>
 | 
			
		||||
    <!-- SlimScroll -->
 | 
			
		||||
    <script src="{{ asset('vendor/almasaeed2010/adminlte/plugins/slimScroll/jquery.slimscroll.min.js') }}"></script>
 | 
			
		||||
    <!-- FastClick -->
 | 
			
		||||
    <script src="{{ asset('vendor/almasaeed2010/adminlte/plugins/fastclick/fastclick.js') }}"></script>
 | 
			
		||||
    <!-- Data Tables -->
 | 
			
		||||
    <script src="{{ asset('vendor/almasaeed2010/adminlte/plugins/datatables/jquery.dataTables.min.js') }}"></script>
 | 
			
		||||
    <script src="{{ asset('vendor/almasaeed2010/adminlte/plugins/datatables/dataTables.bootstrap.min.js') }}"></script>
 | 
			
		||||
    <!-- AdminLTE App -->
 | 
			
		||||
    <script src="{{ asset('vendor/almasaeed2010/adminlte/dist/js/app.min.js') }}"></script>
 | 
			
		||||
 | 
			
		||||
    <!-- Select2 -->
 | 
			
		||||
    <script src="{{ asset('vendor/almasaeed2010/adminlte/plugins/select2/select2.min.js') }}"></script>
 | 
			
		||||
 | 
			
		||||
    <script src="{{ asset('public/js/app.js') }}"></script>
 | 
			
		||||
 | 
			
		||||
    <script type="text/javascript"><!--
 | 
			
		||||
        var url_search = '{{ url("search/search/search") }}';
 | 
			
		||||
    //--></script>
 | 
			
		||||
 | 
			
		||||
    @yield('js')
 | 
			
		||||
 | 
			
		||||
    @yield('scripts')
 | 
			
		||||
</head>
 | 
			
		||||
							
								
								
									
										97
									
								
								resources/views/partials/customer/header.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										97
									
								
								resources/views/partials/customer/header.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,97 @@
 | 
			
		||||
<header class="main-header">
 | 
			
		||||
    <!-- Logo -->
 | 
			
		||||
    <a href="#" class="logo">
 | 
			
		||||
        <!-- mini logo for sidebar mini 50x50 pixels -->
 | 
			
		||||
        <span class="logo-mini"><img src="{{ asset($company->company_logo) }}" class="logo-image-lg" width="25"  alt="{{ $company->company_name }}"></span>
 | 
			
		||||
        <!-- logo for regular state and mobile devices -->
 | 
			
		||||
        <span class="logo-lg"><img src="{{ asset($company->company_logo) }}" class="logo-image-lg" width="25"  alt="{{ $company->company_name }}"> <b>{{ $company->company_name }}</b></span>
 | 
			
		||||
    </a>
 | 
			
		||||
    <!-- Header Navbar: style can be found in header.less -->
 | 
			
		||||
    <nav class="navbar navbar-static-top">
 | 
			
		||||
        <!-- Sidebar toggle button-->
 | 
			
		||||
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
 | 
			
		||||
            <span class="sr-only">Toggle navigation</span>
 | 
			
		||||
            <span class="icon-bar"></span>
 | 
			
		||||
            <span class="icon-bar"></span>
 | 
			
		||||
            <span class="icon-bar"></span>
 | 
			
		||||
        </a>
 | 
			
		||||
 | 
			
		||||
        <div class="navbar-custom-menu">
 | 
			
		||||
            <ul class="nav navbar-nav">
 | 
			
		||||
                <!-- Notifications: style can be found in dropdown.less -->
 | 
			
		||||
                <li class="dropdown notifications-menu">
 | 
			
		||||
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
 | 
			
		||||
                        <i class="fa fa-bell-o"></i>
 | 
			
		||||
                        @if ($notifications)
 | 
			
		||||
                        <span class="label label-warning">{{ $notifications }}</span>
 | 
			
		||||
                        @endif
 | 
			
		||||
                    </a>
 | 
			
		||||
                    <ul class="dropdown-menu">
 | 
			
		||||
                        <li class="header">{{ trans_choice('header.notifications.counter', count($notifications), ['count' => count($notifications)]) }}</li>
 | 
			
		||||
                        <li>
 | 
			
		||||
                            <!-- inner menu: contains the actual data -->
 | 
			
		||||
                            <ul class="menu">
 | 
			
		||||
                                @if (count($bills))
 | 
			
		||||
                                <li>
 | 
			
		||||
                                    <a href="{{ url('auth/users/' . $user->id . '/read-bills') }}">
 | 
			
		||||
                                        <i class="fa fa-shopping-cart text-red"></i> {{ trans_choice('header.notifications.upcoming_bills', count($bills), ['count' => count($bills)]) }}
 | 
			
		||||
                                    </a>
 | 
			
		||||
                                </li>
 | 
			
		||||
                                @endif
 | 
			
		||||
                                @if (count($invoices))
 | 
			
		||||
                                <li>
 | 
			
		||||
                                    <a href="{{ url('auth/users/' . $user->id . '/read-invoices') }}">
 | 
			
		||||
                                        <i class="fa fa-money text-green"></i> {{ trans_choice('header.notifications.overdue_invoices', count($invoices), ['count' => count($invoices)]) }}
 | 
			
		||||
                                    </a>
 | 
			
		||||
                                </li>
 | 
			
		||||
                                @endif
 | 
			
		||||
                            </ul>
 | 
			
		||||
                        </li>
 | 
			
		||||
                        <li class="footer"><a href="#">{{ trans('header.notifications.view_all') }}</a></li>
 | 
			
		||||
                    </ul>
 | 
			
		||||
                </li>
 | 
			
		||||
                <!-- Tasks: style can be found in dropdown.less -->
 | 
			
		||||
                <li class="dropdown tasks-menu">
 | 
			
		||||
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
 | 
			
		||||
                        {!! language()->flag() !!}
 | 
			
		||||
                    </a>
 | 
			
		||||
                    <ul class="dropdown-menu">
 | 
			
		||||
                        <li class="header">{{ trans('header.change_language') }}</li>
 | 
			
		||||
                        <li>
 | 
			
		||||
                            <!-- inner menu: contains the actual data -->
 | 
			
		||||
                            {!! language()->flags() !!}
 | 
			
		||||
                        </li>
 | 
			
		||||
                    </ul>
 | 
			
		||||
                </li>
 | 
			
		||||
                <!-- User Account: style can be found in dropdown.less -->
 | 
			
		||||
                <li class="dropdown user user-menu">
 | 
			
		||||
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
 | 
			
		||||
                        <img src="{{ asset($user->picture) }}" class="user-image" alt="User Image">
 | 
			
		||||
                        <span class="hidden-xs">{{ $user->name }}</span>
 | 
			
		||||
                    </a>
 | 
			
		||||
                    <ul class="dropdown-menu">
 | 
			
		||||
                        <!-- User image -->
 | 
			
		||||
                        <li class="user-header">
 | 
			
		||||
                            <img src="{{ asset($user->picture) }}" class="img-circle" alt="User Image">
 | 
			
		||||
                            <p>
 | 
			
		||||
                                {{ $user->name }}
 | 
			
		||||
                                <small>{{ trans('header.last_login', ['time' => $user->last_logged_in_at]) }}</small>
 | 
			
		||||
                            </p>
 | 
			
		||||
                        </li>
 | 
			
		||||
                        <!-- Menu Footer-->
 | 
			
		||||
                        <li class="user-footer">
 | 
			
		||||
                            @permission('read-customers-profile')
 | 
			
		||||
                            <div class="pull-left">
 | 
			
		||||
                                <a href="{{ url('auth/users/' . $user->id . '/edit') }}" class="btn btn-default btn-flat">{{ trans('auth.profile') }}</a>
 | 
			
		||||
                            </div>
 | 
			
		||||
                            @endpermission
 | 
			
		||||
                            <div class="pull-right">
 | 
			
		||||
                                <a href="{{ url('customers/logout') }}" class="btn btn-default btn-flat">{{ trans('auth.logout') }}</a>
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </li>
 | 
			
		||||
                    </ul>
 | 
			
		||||
                </li>
 | 
			
		||||
            </ul>
 | 
			
		||||
        </div>
 | 
			
		||||
    </nav>
 | 
			
		||||
</header>
 | 
			
		||||
							
								
								
									
										39
									
								
								resources/views/partials/customer/menu.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								resources/views/partials/customer/menu.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,39 @@
 | 
			
		||||
<aside class="main-sidebar">
 | 
			
		||||
    <!-- sidebar: style can be found in sidebar.less -->
 | 
			
		||||
    <section class="sidebar">
 | 
			
		||||
        <!-- Sidebar user panel -->
 | 
			
		||||
        <div class="user-panel">
 | 
			
		||||
            <div class="pull-left image">
 | 
			
		||||
                <img src="{{ asset($customer->picture) }}" class="img-circle" alt="{{ $customer->name }}">
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="pull-left info">
 | 
			
		||||
                <p>{{ $customer->name }}</p>
 | 
			
		||||
                @permission('read-companies-companies')
 | 
			
		||||
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="caret"></span>  {{ trans('general.change') }}</a>
 | 
			
		||||
                <ul class="dropdown-menu">
 | 
			
		||||
                    @foreach($companies as $com)
 | 
			
		||||
                    <li><a href="{{ url('companies/companies/'. $com->id .'/set') }}">{{ $com->company_name }}</a></li>
 | 
			
		||||
                    @endforeach
 | 
			
		||||
                    @permission('update-companies-companies')
 | 
			
		||||
                    <li role="separator" class="divider"></li>
 | 
			
		||||
                    <li><a href="{{ url('companies/companies') }}">{{ trans('companies.manage') }}</a></li>
 | 
			
		||||
                    @endpermission
 | 
			
		||||
                </ul>
 | 
			
		||||
                @endpermission
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <!-- search form -->
 | 
			
		||||
        <form action="#" method="get" id="form-search" class="sidebar-form">
 | 
			
		||||
            <div id="customer-search" class="input-group">
 | 
			
		||||
                <input type="text" name="main_search" value="<?php //echo $search; ?>" id="input-main-search" class="form-control" placeholder="Search...">
 | 
			
		||||
                <span class="input-group-btn">
 | 
			
		||||
                    <button type="submit" name="main_search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
 | 
			
		||||
                </span>
 | 
			
		||||
            </div>
 | 
			
		||||
        </form>
 | 
			
		||||
        <!-- /.search form -->
 | 
			
		||||
        <!-- sidebar menu: : style can be found in sidebar.less -->
 | 
			
		||||
        {!! Menu::get('CustomerMenu') !!}
 | 
			
		||||
    </section>
 | 
			
		||||
    <!-- /.sidebar -->
 | 
			
		||||
</aside>
 | 
			
		||||
							
								
								
									
										6
									
								
								resources/views/partials/customer/pagination.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								resources/views/partials/customer/pagination.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
<div class="pull-left" style="margin-top: 7px;">
 | 
			
		||||
    <small>{{ trans('pagination.showing', ['first' => $items->firstItem(), 'last' => $items->lastItem(), 'total' => $items->total(), 'type' => strtolower(trans_choice('general.' . $type, 2))]) }}</small>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="pull-right">
 | 
			
		||||
    {!! $items->appends(request()->except('page'))->links() !!}
 | 
			
		||||
</div>
 | 
			
		||||
		Reference in New Issue
	
	Block a user