@extends('layouts.frontend')

@section('title', $title)
@section('description', $title)
@section('keywords', $title)
@section('h1', $title)
@section('breadcumbs', '')

@section('content')
    <section id="maincontent" class="pad">
    <div class="container-fluid">
        <div class="row">
            <div class="col-xs-12">
                <h2>{{$title}} - @if($mod == 'order'){{$order->ord_id}}@else{{$user->fullName}}@endif</h2>
                <hr>
            </div>
        </div>
        <div class="row">

            <div class="col-md-3 col-lg-2" >
                @include('frontend.components.user.usernav')
            </div>

            <div class="col-md-9  col-lg-offset-1 col-lg-9" >

                @if (session('status'))
                    <div class="alert alert-info alert-dismissible">
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                        {{ session('status') }}
                    </div>
                    @php session()->forget('status') @endphp

                @endif


                @if($mod == 'index')
                    @include('frontend.components.user.index')
                @elseif($mod == 'data')
                    @include('frontend.components.user.data')
                @elseif($mod == 'pass')
                    @include('frontend.components.user.pass')
                @elseif($mod == 'email')
                    @include('frontend.components.user.email')
                @elseif($mod == 'orders')
                    @include('frontend.components.user.orders')
                @elseif($mod == 'order')
                    @include('frontend.components.user.order')
                @endif



            </div><!-- / #main -->

        </div><!-- / .row -->
    </div><!-- /.container-fluid -->
    </section>
@endsection

@push('css')
    <link rel="stylesheet" href="{{asset('assets/css/user.css')}}">
@endpush

@push('scripts')
@endpush
