restart
This commit is contained in:
@@ -5,45 +5,48 @@
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.Orders.update', 'id' => 'order-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $id }}">
|
||||
<input type="hidden" name="id" value="{{ $order['id'] ?? null }}">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ $order['last_name'] }} {{ $order['first_name'] }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ $order['delivery']['name'] }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ $order['address'] }}<br/>
|
||||
{{ $order['address2'] }}<br/>
|
||||
{{ $order['zipcode'] }} {{ $order['city'] }}<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<x-card title="Détail de a commande">
|
||||
<x-card>
|
||||
<h3>{{ $order['customer']['last_name'] }} {{ $order['customer']['first_name'] }}</h3>
|
||||
|
||||
<h4>{{ $order['delivery']['name'] }} </h4>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<table class="datatable">
|
||||
@foreach ($order['details'] as $detail)
|
||||
<tr>
|
||||
<td>{{ $detail['quantity'] }}</td>
|
||||
<td>{{ $detail['name'] }}</td>
|
||||
<td>{{ $detail['price'] }}</td>
|
||||
<td>{{ $detail['total'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@if ($order['address'])
|
||||
{{ $order['address']['address'] }}<br/>
|
||||
@isset ($order['address']['address2']) {{ $order['address']['address2'] }}<br/> @endisset
|
||||
{{ $order['address']['zipcode'] }} {{ $order['address']['city'] }}<br/>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<x-card title="Détail de la commande">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<table class="datatable w-100 table-bordered">
|
||||
<thead>
|
||||
<th>Quantité</th>
|
||||
<th>Nom</th>
|
||||
<th>Prix</th>
|
||||
<th>Total</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($order['detail'] as $detail)
|
||||
<tr>
|
||||
<td>{{ $detail['quantity'] }}</td>
|
||||
<td>{{ $detail['name'] }}</td>
|
||||
<td>{{ $detail['price'] }}</td>
|
||||
<td>{{ $detail['total'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</x-card>
|
||||
</x-card>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -11,13 +11,6 @@
|
||||
@stack('css')
|
||||
</head>
|
||||
<body class="{{ $bodyClass ?? 'login-page'}}">
|
||||
|
||||
<div class="row" style="width: 380px;">
|
||||
<div class="col-12 text-center">
|
||||
<img src="/img/logo.png" height="128">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@yield('content')
|
||||
<script src="{{ mix('/boilerplate.min.js', '/assets/vendor/boilerplate') }}"></script>
|
||||
@stack('js')
|
||||
14
resources/views/Admin/auth/login.blade.php
Normal file
14
resources/views/Admin/auth/login.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
@extends('auth.layout', [
|
||||
'title' => __('boilerplate::auth.login.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
|
||||
@section('content')
|
||||
<div class="row" style="width: 380px;">
|
||||
<div class="col-12 text-center">
|
||||
<img src="/img/logo.png" height="128">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('Admin.auth.partials.login')
|
||||
@endsection
|
||||
@@ -1,42 +1,35 @@
|
||||
{!! Form::open(['route' => 'Shop.login.post', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
{!! Form::open(['route' => 'boilerplate.login', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="input-group form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{{ Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required', 'autofocus']) }}
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-outline-secondary">
|
||||
<i class="fa fa-at"></i>
|
||||
</button>
|
||||
</div>
|
||||
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
|
||||
{!! $errors->first('email','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<div class="input-group form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
<div class="form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{{ Form::password('password', ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.password')]) }}
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-outline-secondary">
|
||||
<i class="fa fa-lock"></i>
|
||||
</button>
|
||||
</div>
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
{!! $errors->first('password','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-6 mbs">
|
||||
<button type="submit" class="btn btn-primary btn-block btn-flat">{{ __('Se connecter') }}</button>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-lg-6">
|
||||
<a href="{{ route('Shop.password.request') }}">{{ __('Mot de passe oublié ?') }}</a><br>
|
||||
<!--
|
||||
<div class="col-12 col-lg-8">
|
||||
<div class="checkbox icheck">
|
||||
<label style="padding-left: 0">
|
||||
<input type="checkbox" name="remember" class="icheck" {{ old('remember') ? 'checked' : '' }}>
|
||||
{{ __('boilerplate::auth.login.rememberme') }}
|
||||
</label>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
<div class="col-12 col-lg-4 mbs">
|
||||
<button type="submit" class="btn btn-primary btn-block btn-flat">{{ __('boilerplate::auth.login.signin') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
<a href="{{ route('boilerplate.password.request') }}">{{ __('boilerplate::auth.login.forgotpassword') }}</a><br>
|
||||
@if(config('boilerplate.auth.register'))
|
||||
<a href="{{ route('boilerplate.register') }}" class="text-center">{{ __('boilerplate::auth.login.register') }}</a>
|
||||
@endif
|
||||
28
resources/views/Admin/auth/passwords/email.blade.php
Normal file
28
resources/views/Admin/auth/passwords/email.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
@extends('boilerplate::auth.layout', ['title' => __('boilerplate::auth.password.title'), 'bodyClass' => 'hold-transition login-page'])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
<p class="login-box-msg">{{ __('boilerplate::auth.password.intro') }}</p>
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
{!! Form::open(['route' => 'boilerplate.password.email', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{{ Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required', 'autofocus']) }}
|
||||
{!! $errors->first('email','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('boilerplate::auth.password.submit') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<a href="{{ route('boilerplate.login') }}">{{ __('boilerplate::auth.password.login_link') }}</a><br>
|
||||
@endcomponent
|
||||
@endsection
|
||||
@@ -1,12 +1,9 @@
|
||||
@extends('Shop.auth.layout', [
|
||||
'title' => __('boilerplate::auth.password_reset.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
@extends('boilerplate::auth.layout', ['title' => __('boilerplate::auth.password_reset.title')])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
<p class="login-box-msg">{{ __('boilerplate::auth.password_reset.intro') }}</p>
|
||||
{!! Form::open(['route' => 'Shop.password.update', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
{!! Form::open(['route' => 'Shop.password.reset.post', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
{!! Form::hidden('token', $token) !!}
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{{ Form::email('email', old('email', $email), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required', 'autofocus']) }}
|
||||
39
resources/views/Admin/auth/register.blade.php
Normal file
39
resources/views/Admin/auth/register.blade.php
Normal file
@@ -0,0 +1,39 @@
|
||||
@extends('boilerplate::auth.layout', ['title' => __('boilerplate::auth.register.title'), 'bodyClass' => 'hold-transition login-page'])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
<p class="login-box-msg">{{ __('boilerplate::auth.register.intro') }}</p>
|
||||
{!! Form::open(['route' => 'boilerplate.register', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
||||
{{ Form::text('first_name', old('first_name'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.first_name'), 'required', 'autofocus']) }}
|
||||
{!! $errors->first('first_name','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
|
||||
{{ Form::text('last_name', old('last_name'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.last_name'), 'required']) }}
|
||||
{!! $errors->first('last_name','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{{ Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required']) }}
|
||||
{!! $errors->first('email','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{{ Form::password('password', ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.password'), 'required']) }}
|
||||
{!! $errors->first('password','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('password_confirmation') ? 'has-error' : '' }}">
|
||||
{{ Form::password('password_confirmation', ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.password_confirm'), 'required']) }}
|
||||
{!! $errors->first('password_confirmation','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="row mbm">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('boilerplate::auth.register.register_button') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@if(!$firstUser)
|
||||
<a href="{{ route('boilerplate.login') }}">{{ __('boilerplate::auth.register.login_link') }}</a><br>
|
||||
@endif
|
||||
@endcomponent
|
||||
@endsection
|
||||
@@ -49,9 +49,7 @@
|
||||
$('.basket-quantity').change(function() {
|
||||
var offer_id = $(this).data('id');
|
||||
var quantity = $(this).val();
|
||||
var $row = $(this).parents('.row');
|
||||
console.log("add basket");
|
||||
console.log(quantity);
|
||||
var $row = $(this).closest('.row');
|
||||
updateBasket(offer_id, quantity, function() {
|
||||
calculatePrice($row);
|
||||
calculateTotal();
|
||||
@@ -73,8 +71,6 @@
|
||||
}
|
||||
|
||||
function calculatePrice($that) {
|
||||
console.log('calculatePrice');
|
||||
console.log($that);
|
||||
var quantity = $that.find('.basket-quantity').val();
|
||||
var price = $that.find('.basket-price').text();
|
||||
var total_price = fixNumber(quantity * price);
|
||||
|
||||
15
resources/views/Shop/Customers/partials/deliveries.blade.php
Normal file
15
resources/views/Shop/Customers/partials/deliveries.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@foreach ($deliveries as $delivery)
|
||||
<div class="row mt-3 mb-3">
|
||||
<div class="col-1">
|
||||
@include('components.form.radios.icheck', [
|
||||
'name' => 'delivery_id',
|
||||
'value' => $delivery['id'],
|
||||
'checked' => $customer['sale_delivery_id'] ?? false,
|
||||
])
|
||||
</div>
|
||||
<div class="col-11">
|
||||
<strong>{{ $delivery['name'] }} - {{ $delivery['sale_channel']['name'] }}</strong><br/>
|
||||
<p>{{ $delivery['description'] }}</p>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
20
resources/views/Shop/Customers/partials/invoices.blade.php
Normal file
20
resources/views/Shop/Customers/partials/invoices.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="mt-3">
|
||||
@if ($customer['orders'] ?? false)
|
||||
@foreach ($customer['orders'] as $order)
|
||||
<div class="row mb-3">
|
||||
<div class="col-1">
|
||||
</div>
|
||||
<div class="col-4">
|
||||
Numero facture
|
||||
</div>
|
||||
<div class="col-4">
|
||||
Date facture
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<a href="">Imprimer</a>
|
||||
<a href="">Télécharger</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
19
resources/views/Shop/Customers/partials/sale.blade.php
Normal file
19
resources/views/Shop/Customers/partials/sale.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<nav>
|
||||
<div class="nav nav-tabs pl-2">
|
||||
<a href="#deliveries" data-toggle="tab" class="nav-item nav-link active" role="tab" aria-controls="deliveries" aria-selected="true">
|
||||
MON MODE D'ACHAT
|
||||
</a>
|
||||
<a href="#invoices" data-toggle="tab" class="nav-item nav-link" role="tab" aria-controls="invoices" aria-selected="false">
|
||||
FACTURES ET SUIVI DE COMMANDES
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active pt-0 pb-0 pl-2 pr-2" id="deliveries">
|
||||
@include('Shop.Customers.partials.deliveries')
|
||||
</div>
|
||||
<div class="tab-pane fade show pt-0 pb-0 pl-2 pr-2" id="invoices">
|
||||
@include('Shop.Customers.partials.invoices')
|
||||
</div>
|
||||
</div>
|
||||
10
resources/views/Shop/Customers/partials/user.blade.php
Normal file
10
resources/views/Shop/Customers/partials/user.blade.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<hr>
|
||||
<strong>Mes coordonnées</strong><br>
|
||||
|
||||
<i class="fa fa-home pr-2"></i> {{ $customer['address'] }}<br>
|
||||
<i class="pr-5"></i> {{ $customer['address2'] }}<br>
|
||||
|
||||
<i class="fa fa-phone pr-2"></i> {{ $customer['phone'] }}<br>
|
||||
<i class="fa fa-envelope pr-2"></i> {{ $customer['email'] }}<br>
|
||||
<hr>
|
||||
<strong>Compte créé le {{ $customer['created_at'] }}</strong>
|
||||
@@ -3,5 +3,11 @@
|
||||
])
|
||||
|
||||
@section('content')
|
||||
Profil
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
@include('Shop.Customers.partials.user')
|
||||
</div>
|
||||
<div class="col-9">
|
||||
@include('Shop.Customers.partials.sale')
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -1,13 +1,33 @@
|
||||
<div class="row">
|
||||
<div class="col-12 text-right">
|
||||
@if ($display_by_rows ?? false)
|
||||
@include('components.form.button', ['id' => 'by_cards', 'icon' => 'fa-th', 'class' => 'btn-secondary'])
|
||||
@include('components.form.button', [
|
||||
'id' => 'by_cards',
|
||||
'icon' => 'fa-th',
|
||||
'class' => 'btn-secondary',
|
||||
'title' => 'Vue par vignettes',
|
||||
])
|
||||
@else
|
||||
@include('components.form.button', ['id' => 'by_rows', 'icon' => 'fa-list', 'class' => 'btn-secondary'])
|
||||
@include('components.form.button', [
|
||||
'id' => 'by_rows',
|
||||
'icon' => 'fa-list',
|
||||
'class' => 'btn-secondary',
|
||||
'title' => 'Vue par lignes',
|
||||
])
|
||||
@endif
|
||||
|
||||
@include('components.form.button', ['data_id' => 'botanic', 'icon' => 'fa-leaf', 'class' => 'products bg-yellow yellow-dark'])
|
||||
@include('components.form.button', ['data_id' => 'merchandise', 'icon' => 'fa-seedling', 'class' => 'products bg-green text-white'])
|
||||
@include('components.form.button', [
|
||||
'data_id' => 'botanic',
|
||||
'icon' => 'fa-leaf',
|
||||
'class' => 'products bg-yellow yellow-dark',
|
||||
'title' => 'Par semences',
|
||||
])
|
||||
@include('components.form.button', [
|
||||
'data_id' => 'merchandise',
|
||||
'icon' => 'fa-seedling',
|
||||
'class' => 'products bg-green text-white',
|
||||
'title' => 'Par plants',
|
||||
])
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
@else
|
||||
@include('Shop.Shelves.partials.category_articles')
|
||||
@endif
|
||||
</form>
|
||||
{{ Form::close() }}
|
||||
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
@extends('Shop.auth.layout', [
|
||||
'title' => __('boilerplate::auth.login.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
@include('Shop.auth.partials.login')
|
||||
|
||||
<p class="mt-3">
|
||||
Vous n'avez pas encore de compte ?
|
||||
<a href="{{ route('Shop.register') }}" class="text-center">{{ __('Inscrivez-vous') }}</a>
|
||||
</p>
|
||||
@endsection
|
||||
@@ -1,13 +0,0 @@
|
||||
@extends('Shop.auth.layout', ['title' => __('boilerplate::auth.password.title'), 'bodyClass' => 'hold-transition login-page'])
|
||||
|
||||
@section('content')
|
||||
|
||||
<p class="login-box-msg">{{ __('boilerplate::auth.password.intro') }}</p>
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('Shop.auth.partials.lost_password')
|
||||
@endsection
|
||||
@@ -1,8 +0,0 @@
|
||||
@extends('Shop.layout.layout', [
|
||||
'title' => __('home.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@include('Shop.auth.partials.register')
|
||||
@endsection
|
||||
@@ -20,19 +20,19 @@
|
||||
Déconnexion
|
||||
</a>
|
||||
|
||||
<form id="logout-form" action="{{ route('Shop.logout') }}" method="POST" style="display: none;">
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
||||
@csrf
|
||||
</form>
|
||||
|
||||
</li>
|
||||
@else
|
||||
<li class="dropdown-item">
|
||||
<a href="{{ route('Shop.login') }}" title="Identifiez-vous" rel="nofollow">
|
||||
<a href="{{ route('login') }}" title="Identifiez-vous" rel="nofollow">
|
||||
<span>Connexion</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
<a href="{{ route('Shop.register') }}" title="Enregistrez-vous" rel="nofollow">
|
||||
<a href="{{ route('register') }}" title="Enregistrez-vous" rel="nofollow">
|
||||
<span>Creer votre compte</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -11,6 +11,13 @@
|
||||
@stack('css')
|
||||
</head>
|
||||
<body class="{{ $bodyClass ?? 'login-page'}}">
|
||||
|
||||
<div class="row" style="width: 380px;">
|
||||
<div class="col-12 text-center">
|
||||
<img src="/img/logo.png" height="128">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@yield('content')
|
||||
<script src="{{ mix('/boilerplate.min.js', '/assets/vendor/boilerplate') }}"></script>
|
||||
@stack('js')
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
@extends('auth.layout', [
|
||||
@extends('Shop.auth.layout', [
|
||||
'title' => __('boilerplate::auth.login.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
|
||||
@section('content')
|
||||
<div class="row" style="width: 380px;">
|
||||
<div class="col-12 text-center">
|
||||
<img src="/img/logo.png" height="128">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('auth.partials.login')
|
||||
|
||||
<p class="mt-3">
|
||||
Vous n'avez pas encore de compte ?
|
||||
<a href="{{ route('register') }}" class="text-center">{{ __('Inscrivez-vous') }}</a>
|
||||
</p>
|
||||
@endsection
|
||||
|
||||
@@ -1,35 +1,42 @@
|
||||
{!! Form::open(['route' => 'boilerplate.login', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
{!! Form::open(['route' => 'login.post', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
|
||||
<div class="form-group has-feedback">
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
<div class="input-group form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{{ Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required', 'autofocus']) }}
|
||||
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-outline-secondary">
|
||||
<i class="fa fa-at"></i>
|
||||
</button>
|
||||
</div>
|
||||
{!! $errors->first('email','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<div class="form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
<div class="input-group form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{{ Form::password('password', ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.password')]) }}
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-outline-secondary">
|
||||
<i class="fa fa-lock"></i>
|
||||
</button>
|
||||
</div>
|
||||
{!! $errors->first('password','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-8">
|
||||
<div class="col-12 col-lg-6 mbs">
|
||||
<button type="submit" class="btn btn-primary btn-block btn-flat">{{ __('Se connecter') }}</button>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-lg-6">
|
||||
<a href="{{ route('password.request') }}">{{ __('Mot de passe oublié ?') }}</a><br>
|
||||
<!--
|
||||
<div class="checkbox icheck">
|
||||
<label style="padding-left: 0">
|
||||
<input type="checkbox" name="remember" class="icheck" {{ old('remember') ? 'checked' : '' }}>
|
||||
{{ __('boilerplate::auth.login.rememberme') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-4 mbs">
|
||||
<button type="submit" class="btn btn-primary btn-block btn-flat">{{ __('boilerplate::auth.login.signin') }}</button>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
<a href="{{ route('boilerplate.password.request') }}">{{ __('boilerplate::auth.login.forgotpassword') }}</a><br>
|
||||
@if(config('boilerplate.auth.register'))
|
||||
<a href="{{ route('boilerplate.register') }}" class="text-center">{{ __('boilerplate::auth.login.register') }}</a>
|
||||
@endif
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{!! Form::open(['route' => 'Shop.password.email', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
{!! Form::open(['route' => 'password.email', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{{ Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required', 'autofocus']) }}
|
||||
{!! $errors->first('email','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
@@ -13,4 +13,4 @@
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<a href="{{ route('Shop.login') }}">{{ __('boilerplate::auth.password.login_link') }}</a><br>
|
||||
<a href="{{ route('login') }}">{{ __('boilerplate::auth.password.login_link') }}</a><br>
|
||||
@@ -1,4 +1,4 @@
|
||||
{!! Form::open(['route' => 'Shop.register.post', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
{!! Form::open(['route' => 'register.post', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<x-card title='Créez votre compte' class='mt-3 mb-3'>
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="form-group {{ $errors->has('address2') ? 'has-error' : '' }}">
|
||||
{{ Form::text('address2', old('address2'), ['class' => 'form-control', 'placeholder' => __('Complément d\'adresse'), 'required']) }}
|
||||
{{ Form::text('address2', old('address2'), ['class' => 'form-control', 'placeholder' => __('Complément d\'adresse')]) }}
|
||||
{!! $errors->first('address2','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,28 +1,13 @@
|
||||
@extends('boilerplate::auth.layout', ['title' => __('boilerplate::auth.password.title'), 'bodyClass' => 'hold-transition login-page'])
|
||||
@extends('Shop.auth.layout', ['title' => __('boilerplate::auth.password.title'), 'bodyClass' => 'hold-transition login-page'])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
<p class="login-box-msg">{{ __('boilerplate::auth.password.intro') }}</p>
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
{!! Form::open(['route' => 'boilerplate.password.email', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{{ Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required', 'autofocus']) }}
|
||||
{!! $errors->first('email','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('boilerplate::auth.password.submit') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<a href="{{ route('boilerplate.login') }}">{{ __('boilerplate::auth.password.login_link') }}</a><br>
|
||||
@endcomponent
|
||||
|
||||
<p class="login-box-msg">{{ __('boilerplate::auth.password.intro') }}</p>
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('Shop.auth.partials.lost_password')
|
||||
@endsection
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
@extends('boilerplate::auth.layout', ['title' => __('boilerplate::auth.password_reset.title')])
|
||||
@extends('Shop.auth.layout', [
|
||||
'title' => __('boilerplate::auth.password_reset.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
<p class="login-box-msg">{{ __('boilerplate::auth.password_reset.intro') }}</p>
|
||||
{!! Form::open(['route' => 'Shop.password.reset.post', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
{!! Form::open(['route' => 'Shop.password.update', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
{!! Form::hidden('token', $token) !!}
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{{ Form::email('email', old('email', $email), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required', 'autofocus']) }}
|
||||
|
||||
@@ -1,39 +1,8 @@
|
||||
@extends('boilerplate::auth.layout', ['title' => __('boilerplate::auth.register.title'), 'bodyClass' => 'hold-transition login-page'])
|
||||
@extends('Shop.layout.layout', [
|
||||
'title' => __('home.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
<p class="login-box-msg">{{ __('boilerplate::auth.register.intro') }}</p>
|
||||
{!! Form::open(['route' => 'boilerplate.register', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
||||
{{ Form::text('first_name', old('first_name'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.first_name'), 'required', 'autofocus']) }}
|
||||
{!! $errors->first('first_name','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
|
||||
{{ Form::text('last_name', old('last_name'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.last_name'), 'required']) }}
|
||||
{!! $errors->first('last_name','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{{ Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.email'), 'required']) }}
|
||||
{!! $errors->first('email','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{{ Form::password('password', ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.password'), 'required']) }}
|
||||
{!! $errors->first('password','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('password_confirmation') ? 'has-error' : '' }}">
|
||||
{{ Form::password('password_confirmation', ['class' => 'form-control', 'placeholder' => __('boilerplate::auth.fields.password_confirm'), 'required']) }}
|
||||
{!! $errors->first('password_confirmation','<p class="text-danger"><strong>:message</strong></p>') !!}
|
||||
</div>
|
||||
<div class="row mbm">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('boilerplate::auth.register.register_button') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@if(!$firstUser)
|
||||
<a href="{{ route('boilerplate.login') }}">{{ __('boilerplate::auth.register.login_link') }}</a><br>
|
||||
@endif
|
||||
@endcomponent
|
||||
@include('auth.partials.register')
|
||||
@endsection
|
||||
|
||||
@@ -1,8 +1,18 @@
|
||||
<button type="{{ $type ?? 'button' }}" class="btn {{ $class ?? ''}}"
|
||||
@isset($id) id="{{ $id }}" @endisset
|
||||
@isset($data_id) data-id="{{ $data_id }}" @endisset
|
||||
{{ $metadata ?? null }}
|
||||
@isset($dataId) data-id="{{ $dataId }}" @endisset
|
||||
@isset($title) title="{{ $title }}" data-toggle="tooltip" @endisset
|
||||
@isset($loading_text) data-loading-text="{{ $loading_text }}" @endisset
|
||||
@isset($loadingText) data-loading-text="{{ $loadingText }}" @endisset
|
||||
@isset($tooltip) data-toggle="tooltip" data-tooltip="{{ $tooltip }}" @endisset
|
||||
@isset($popover) data-toggle="popover" data-content="{{ $popover }}" @endisset
|
||||
@isset($placement) data-placement="{{ $placement ?? 'auto' }}" @endisset
|
||||
@isset($trigger) data-trigger="{{ $trigger }}" @endisset
|
||||
@isset($container) data-container="{{ $container }}" @endisset
|
||||
@isset($html) data-html="true" @endisset
|
||||
@isset($metadata) {{ $metadata }} @endisset
|
||||
>
|
||||
@if ($icon ?? false)<i class="fa fa-fw {{ $icon ?? '' }}"></i>@endif
|
||||
<i class="fa fa-fw {{ $icon ?? '' }}"></i>
|
||||
{{ $txt ?? '' }}
|
||||
</button>
|
||||
</button>
|
||||
|
||||
9
resources/views/paybox/aborted.blade.php
Normal file
9
resources/views/paybox/aborted.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
You canceled the payment.
|
||||
</body>
|
||||
</html>
|
||||
9
resources/views/paybox/accepted.blade.php
Normal file
9
resources/views/paybox/accepted.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
Thank you for your payment. Your payment should be accepted soon.
|
||||
</body>
|
||||
</html>
|
||||
9
resources/views/paybox/refused.blade.php
Normal file
9
resources/views/paybox/refused.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
It seems your payment has been refused.
|
||||
</body>
|
||||
</html>
|
||||
19
resources/views/paybox/send.blade.php
Normal file
19
resources/views/paybox/send.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Send Paybox payment</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" action="{{ $url }}" id="paybox-payment">
|
||||
@foreach ($parameters as $name => $value)
|
||||
<input type="hidden" name="{{ $name }}" value="{{ $value }}">
|
||||
@endforeach
|
||||
|
||||
<input type="submit" value="Send payment">
|
||||
</form>
|
||||
<script>
|
||||
document.getElementById("paybox-payment").submit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
9
resources/views/paybox/waiting.blade.php
Normal file
9
resources/views/paybox/waiting.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
Your payment is waiting. It might take some time until it is completed.
|
||||
</body>
|
||||
</html>
|
||||
@@ -20,6 +20,7 @@
|
||||
<script src="{{ mix('/bootstrap.min.js', '/assets/vendor/boilerplate') }}"></script>
|
||||
<script src="{{ mix('/admin-lte.min.js', '/assets/vendor/boilerplate') }}"></script>
|
||||
<script src="{{ mix('/boilerplate.min.js', '/assets/vendor/boilerplate') }}"></script>
|
||||
<script>$.ajaxSetup({headers:{'X-CSRF-TOKEN':'{{ csrf_token() }}'}});</script>
|
||||
@stack('js')
|
||||
</body>
|
||||
</html>
|
||||
@@ -28,14 +28,16 @@
|
||||
@if(config('boilerplate.locale.switch', false))
|
||||
<div class="dropdown-wrapper">
|
||||
<div class="form-group">
|
||||
<select class="form-control form-control-sm" onchange="if (this.value) window.location.href=this.value">
|
||||
{!! Form::open(['route' => 'boilerplate.lang.switch', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
<select class="form-control form-control-sm" name="lang" onchange="this.form.submit()">
|
||||
@foreach(collect(config('boilerplate.locale.languages'))->map(function($e){return $e['label'];})->toArray() as $lang => $label)
|
||||
<option value="{{ route('boilerplate.lang.switch', $lang) }}" {{ $lang === App::getLocale() ? 'selected' : '' }}>{{ $label }}</option>
|
||||
<option value="{{ $lang }}" {{ $lang === App::getLocale() ? 'selected' : '' }}>{{ $label }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endcomponent
|
||||
@endsection
|
||||
@endsection
|
||||
@@ -21,13 +21,20 @@
|
||||
</div>
|
||||
@endif
|
||||
@if($type === 'password')
|
||||
{!! Form::password($name, array_merge(['class' => 'form-control'.$errors->first($name,' is-invalid').(isset($class) ? ' '.$class : '')], $attributes)) !!}
|
||||
{!! Form::password($name, array_merge(['class' => 'form-control'.$errors->first($nameDot,' is-invalid').(isset($class) ? ' '.$class : '')], $attributes)) !!}
|
||||
@elseif($type === 'file')
|
||||
{!! Form::file($name, array_merge(['class' => 'form-control-file'.$errors->first($name,' is-invalid').(isset($class) ? ' '.$class : '')], $attributes)) !!}
|
||||
{!! Form::file($name, array_merge(['class' => 'form-control-file'.$errors->first($nameDot,' is-invalid').(isset($class) ? ' '.$class : '')], $attributes)) !!}
|
||||
@elseif($type === 'select')
|
||||
{!! Form::select($name, $options ?? [], old($name, $value ?? ''), array_merge(['class' => 'form-control'.$errors->first($name,' is-invalid').(isset($class) ? ' '.$class : '')], $attributes)) !!}
|
||||
{!! Form::select($name, $options ?? [], old($name, $value ?? ''), array_merge(['class' => 'form-control'.$errors->first($nameDot,' is-invalid').(isset($class) ? ' '.$class : '')], $attributes)) !!}
|
||||
@else
|
||||
{!! Form::{$type ?? 'text'}($name, old($name, $value ?? ''), array_merge(['class' => 'form-control'.$errors->first($name,' is-invalid').(isset($class) ? ' '.$class : '')], $attributes)) !!}
|
||||
@if($clearable ?? false)
|
||||
<div class="input-clearable">
|
||||
<span class="fa fa-times fa-xs"{!! old($name, $value ?? '') !== '' ? ' style="display:block"' : '' !!}></span>
|
||||
@endif
|
||||
{!! Form::{$type ?? 'text'}($name, old($name, $value ?? ''), array_merge(['class' => 'form-control'.$errors->first($nameDot,' is-invalid').(isset($class) ? ' '.$class : '')], $attributes)) !!}
|
||||
@if($clearable ?? false)
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
@if($append || $appendText)
|
||||
<div class="input-group-append">
|
||||
@@ -44,7 +51,7 @@
|
||||
@if($help ?? false)
|
||||
<small class="form-text text-muted">@lang($help)</small>
|
||||
@endif
|
||||
@error($name)
|
||||
@error($nameDot)
|
||||
<div class="error-bubble"><div>{{ $message }}</div></div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
@isset($label)
|
||||
<label for="{{ $id }}">{!! __($label) !!}</label>
|
||||
@endisset
|
||||
<select id="{{ $id }}" name="{{ $name }}" class="form-control{{ $errors->first($name,' is-invalid') }}{{ isset($class) ? ' '.$class : '' }}"{!! !empty($attributes) ? ' '.$attributes : '' !!} style="visibility:hidden;height:1rem" autocomplete="off">
|
||||
<select id="{{ $id }}" name="{{ $name }}" class="form-control{{ $errors->first($nameDot,' is-invalid') }}{{ isset($class) ? ' '.$class : '' }}"{!! !empty($attributes) ? ' '.$attributes : '' !!} style="visibility:hidden;height:1rem" autocomplete="off">
|
||||
@if(!isset($multiple))
|
||||
<option></option>
|
||||
@endif
|
||||
@@ -20,7 +20,7 @@
|
||||
@if($help ?? false)
|
||||
<small class="form-text text-muted">@lang($help)</small>
|
||||
@endif
|
||||
@error($name)
|
||||
@error($nameDot)
|
||||
<div class="error-bubble"><div>{{ $message }}</div></div>
|
||||
@enderror
|
||||
</div>
|
||||
@@ -28,21 +28,36 @@
|
||||
@component('boilerplate::minify')
|
||||
<script>
|
||||
whenAssetIsLoaded('select2', () => {
|
||||
let parent = $('#{{ $id }}').parent();
|
||||
$('#{{ $id }}').select2({
|
||||
window.{{ 'S2_'.\Str::camel($id) }} = $('#{{ $id }}').select2({
|
||||
placeholder: '{{ $placeholder ?? '—' }}',
|
||||
allowClear: {{ $allowClear }},
|
||||
language: "{{ App::getLocale() }}",
|
||||
direction: "@lang('boilerplate::layout.direction')",
|
||||
minimumInputLength: {{ $minimumInputLength ?? 0 }},
|
||||
minimumInputLength: {{ $minimumInputLength ?? intval(isset($model)) }},
|
||||
minimumResultsForSearch: {{ $minimumResultsForSearch ?? 10 }},
|
||||
width: '100%',
|
||||
dropdownAutoWidth: true,
|
||||
dropdownParent: parent,
|
||||
dropdownParent: $('#{{ $id }}').parent(),
|
||||
tags: {{ $tags ?? 0 }},
|
||||
escapeMarkup: function(markup) { return markup },
|
||||
@isset($ajax)
|
||||
ajax: {
|
||||
delay: 200,
|
||||
url: '{{ $ajax }}',
|
||||
data: function (param) {
|
||||
return {
|
||||
q: param.term,
|
||||
length: {{ $maxLength ?? 10 }},
|
||||
@isset($model)
|
||||
m: "{{ $model }}",
|
||||
@endisset
|
||||
@if(!empty($ajaxParams))
|
||||
@foreach ($ajaxParams as $k => $v)
|
||||
{{ $k }}: "{{ $v }}",
|
||||
@endforeach
|
||||
@endif
|
||||
}
|
||||
},
|
||||
method: 'post'
|
||||
}
|
||||
@endisset
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
@isset($label)
|
||||
<label for="{{ $id }}">{!! __($label) !!}</label>
|
||||
@endisset
|
||||
<textarea id="{{ $id }}" name="{{ $name }}"{!! !empty($attributes) ? ' '.$attributes : '' !!} style="visibility:hidden">{!! old($name, $value ?? $slot ?? '') !!}</textarea>
|
||||
<textarea id="{{ $id }}" name="{{ $name }}"{!! !empty($attributes) ? ' '.$attributes : '' !!} style="visibility:hidden{{ $minHeight ?? false ? ';min-height:'.$minHeight.'px' : '' }}">{!! old($name, $value ?? $slot ?? '') !!}</textarea>
|
||||
@if($help ?? false)
|
||||
<small class="form-text text-muted">@lang($help)</small>
|
||||
@endif
|
||||
@error($name)
|
||||
@error($nameDot)
|
||||
<div class="error-bubble"><div>{{ $message }}</div></div>
|
||||
@enderror
|
||||
</div>
|
||||
@@ -17,9 +17,11 @@
|
||||
@component('boilerplate::minify')
|
||||
<script>
|
||||
whenAssetIsLoaded('{!! mix('/plugins/tinymce/tinymce.min.js', '/assets/vendor/boilerplate') !!}', () => {
|
||||
tinymce.init({
|
||||
window.{{ 'MCE_'.\Str::camel($id) }} = tinymce.init({
|
||||
selector: '#{{ $id }}',
|
||||
toolbar_sticky: {{ ($sticky ?? false) ? 'true' : 'false' }},
|
||||
{{ $minHeight ?? false ? 'min_height:'.$minHeight.',' : '' }}
|
||||
{{ $maxHeight ?? false ? 'max_height:'.$maxHeight.',' : '' }}
|
||||
@if(setting('darkmode', false) && config('boilerplate.theme.darkmode'))
|
||||
skin : "boilerplate-dark",
|
||||
content_css: 'boilerplate-dark',
|
||||
@@ -27,7 +29,7 @@
|
||||
skin : "oxide",
|
||||
content_css: null,
|
||||
@endif
|
||||
@if(App::getLocale() !== 'en')
|
||||
@if(App::getLocale() !== 'en')
|
||||
language: '{{ App::getLocale() }}'
|
||||
@endif
|
||||
});
|
||||
|
||||
@@ -1,34 +1,30 @@
|
||||
<div class="content-header pt-2 pb-1">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2 align-items-end">
|
||||
<div class="col-sm-6">
|
||||
<h1 class="m-0">
|
||||
{{ $title }}
|
||||
@if(isset($subtitle))
|
||||
<small class="font-weight-light ml-1 text-md">{{ $subtitle }}</small>
|
||||
@endif
|
||||
</h1>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right text-sm">
|
||||
<li class="breadcrumb-item">
|
||||
<a href="{{ route('boilerplate.dashboard') }}">
|
||||
{{ __('boilerplate::layout.home') }}
|
||||
</a>
|
||||
</li>
|
||||
@if(isset($breadcrumb))
|
||||
@foreach($breadcrumb as $label => $route)
|
||||
@if(is_numeric($label))
|
||||
<li class="breadcrumb-item active">{{ $route }}</li>
|
||||
@elseif(is_array($route))
|
||||
<li class="breadcrumb-item"><a href="{{ route($route[0], $route[1]) }}">{{ $label }}</a></li>
|
||||
@else
|
||||
<li class="breadcrumb-item"><a href="{{ route($route) }}">{{ $label }}</a></li>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</ol>
|
||||
</div>
|
||||
<div class="d-flex align-items-end flex-wrap justify-content-between pb-2">
|
||||
<h1 class="m-0 pr-3">
|
||||
{{ $title }}
|
||||
@if(isset($subtitle))
|
||||
<small class="font-weight-light ml-1 text-md">{{ $subtitle }}</small>
|
||||
@endif
|
||||
</h1>
|
||||
<ol class="breadcrumb text-sm">
|
||||
<li class="breadcrumb-item">
|
||||
<a href="{{ route('boilerplate.dashboard') }}">
|
||||
{{ __('boilerplate::layout.home') }}
|
||||
</a>
|
||||
</li>
|
||||
@if(isset($breadcrumb))
|
||||
@foreach($breadcrumb as $label => $route)
|
||||
@if(is_numeric($label))
|
||||
<li class="breadcrumb-item active">{{ $route }}</li>
|
||||
@elseif(is_array($route))
|
||||
<li class="breadcrumb-item"><a href="{{ route($route[0], $route[1]) }}">{{ $label }}</a></li>
|
||||
@else
|
||||
<li class="breadcrumb-item"><a href="{{ route($route) }}">{{ $label }}</a></li>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,18 +1,20 @@
|
||||
<footer class="main-footer text-sm">
|
||||
<strong>
|
||||
© {{ date('Y') }}
|
||||
@if(config('boilerplate.theme.footer.vendorlink'))
|
||||
<a href="{{ config('boilerplate.theme.footer.vendorlink') }}">
|
||||
{!! config('boilerplate.theme.footer.vendorname') !!}
|
||||
</a>.
|
||||
@else
|
||||
{!! config('boilerplate.theme.footer.vendorname') !!}.
|
||||
@endif
|
||||
</strong>
|
||||
{{ __('boilerplate::layout.rightsres') }}
|
||||
<div class="float-right d-none d-sm-inline">
|
||||
<div class="d-flex justify-content-between flex-wrap">
|
||||
<div>
|
||||
<strong>
|
||||
© {{ date('Y') }}
|
||||
@if(config('boilerplate.theme.footer.vendorlink'))
|
||||
<a href="{{ config('boilerplate.theme.footer.vendorlink') }}">
|
||||
{!! config('boilerplate.theme.footer.vendorname') !!}
|
||||
</a>.
|
||||
@else
|
||||
{!! config('boilerplate.theme.footer.vendorname') !!}.
|
||||
@endif
|
||||
</strong>
|
||||
{{ __('boilerplate::layout.rightsres') }}
|
||||
</div>
|
||||
<a href="https://github.com/sebastienheyd/boilerplate">
|
||||
Boilerplate
|
||||
Boilerplate | {{ \Composer\InstalledVersions::getPrettyVersion('sebastienheyd/boilerplate') }}
|
||||
</a>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -6,59 +6,20 @@
|
||||
<i class="fas fa-fw fa-bars"></i>
|
||||
</a>
|
||||
</li>
|
||||
@foreach(app('boilerplate.navbar.items')->getItems('left') as $view){!! $view !!}@endforeach
|
||||
</ul>
|
||||
@foreach(app('boilerplate.navbar.items')->getItems('left') as $view)
|
||||
{!! $view !!}
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="navbar-right ml-auto d-flex">
|
||||
@foreach(app('boilerplate.navbar.items')->getItems('right') as $view)
|
||||
{!! $view !!}
|
||||
@endforeach
|
||||
<ul class="nav navbar-nav">
|
||||
@if(config('boilerplate.locale.switch', false))
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle px-2" data-toggle="dropdown" href="#" aria-expanded="false">
|
||||
{{ Config::get('boilerplate.locale.languages.'.App::getLocale().'.label') }}
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right" style="left: inherit; right: 0px;">
|
||||
@foreach(collect(config('boilerplate.locale.languages'))->map(function($e){return $e['label'];})->toArray() as $lang => $label)
|
||||
@if ($lang !== App::getLocale())
|
||||
<a href="{{ route('boilerplate.lang.switch', $lang) }}" class="dropdown-item">{{ $label }}</a>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
@if(config('boilerplate.theme.navbar.user.visible'))
|
||||
<li class="nav-item">
|
||||
<a href="{{ route('boilerplate.user.profile') }}" class="nav-link d-flex align-items-center px-2">
|
||||
<img src="{{ Auth::user()->avatar_url }}" class="avatar-img img-circle bg-gray mr-0 mr-md-2 elevation-{{ config('boilerplate.theme.navbar.user.shadow') }}" alt="{{ Auth::user()->name }}" height="32">
|
||||
<span class="d-none d-md-block">{{ Auth::user()->name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@if(config('boilerplate.theme.darkmode', false))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-2" data-widget="darkmode" href="#" role="button">
|
||||
@if(setting('darkmode', false))
|
||||
<i class="fas fa-fw fa-sun"></i>
|
||||
@else
|
||||
<i class="far fa-fw fa-moon"></i>
|
||||
@endif
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@if(config('boilerplate.theme.fullscreen', false))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-2" data-widget="fullscreen" href="#" role="button">
|
||||
<i class="fas fa-fw fa-expand-arrows-alt"></i>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@includeWhen(config('boilerplate.theme.navbar.user.visible'), 'boilerplate::layout.header.user')
|
||||
@foreach(app('boilerplate.navbar.items')->getItems('right') as $view){!! $view !!}@endforeach
|
||||
@includeWhen((config('boilerplate.app.allowImpersonate') && Auth::user()->hasRole('admin')) || session()->has('impersonate'), 'boilerplate::layout.header.impersonate')
|
||||
@includeWhen(config('boilerplate.locale.switch', false), 'boilerplate::layout.header.language')
|
||||
@includeWhen(config('boilerplate.theme.darkmode', false), 'boilerplate::layout.header.darkmode')
|
||||
@includeWhen(config('boilerplate.theme.fullscreen', false), 'boilerplate::layout.header.fullscreen')
|
||||
<li class="nav-item">
|
||||
{!! Form::open(['route' => 'boilerplate.logout', 'method' => 'post', 'id' => 'logout-form']) !!}
|
||||
<button type="submit" class="btn nav-link d-flex align-items-center logout px-2" data-question="{{ __('boilerplate::layout.logoutconfirm') }}">
|
||||
<button type="submit" class="btn nav-link d-flex align-items-center logout px-2" data-question="{{ __('boilerplate::layout.logoutconfirm') }}" data-toggle="tooltip" title="@lang('boilerplate::layout.logout')">
|
||||
<span class="fa fa-fw fa-power-off hidden-xs pr-1"></span>
|
||||
</button>
|
||||
{!! Form::close() !!}
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
$.ajaxSetup({headers:{'X-CSRF-TOKEN':'{{ csrf_token() }}'}});
|
||||
bootbox.setLocale('{{ App::getLocale() }}');
|
||||
var bpRoutes={
|
||||
settings:"{{ route('boilerplate.settings',null,false) }}"
|
||||
settings:"{{ route('boilerplate.user.settings',null,false) }}"
|
||||
};
|
||||
var session={
|
||||
keepalive:"{{ route('boilerplate.keepalive', null, false) }}",
|
||||
|
||||
@@ -1,22 +1,25 @@
|
||||
<aside class="main-sidebar sidebar-{{ config('boilerplate.theme.sidebar.type') }}-{{ config('boilerplate.theme.sidebar.links.bg') }} elevation-{{ config('boilerplate.theme.sidebar.shadow') }}">
|
||||
<a href="{{ route('boilerplate.dashboard') }}" class="brand-link {{ !empty(config('boilerplate.theme.sidebar.brand.bg')) ? 'bg-'.config('boilerplate.theme.sidebar.brand.bg') : ''}}">
|
||||
<a href="{{ route('boilerplate.dashboard') }}" class="brand-link d-flex {{ !empty(config('boilerplate.theme.sidebar.brand.bg')) ? 'bg-'.config('boilerplate.theme.sidebar.brand.bg') : ''}}">
|
||||
<span class="brand-logo bg-{{ config('boilerplate.theme.sidebar.brand.logo.bg') }} elevation-{{ config('boilerplate.theme.sidebar.brand.logo.shadow') }}">
|
||||
{!! config('boilerplate.theme.sidebar.brand.logo.icon') !!}
|
||||
</span>
|
||||
<span class="brand-text">{!! config('boilerplate.theme.sidebar.brand.logo.text') !!}</span>
|
||||
<span class="brand-text text-truncate pr-2" title="{!! strip_tags(config('boilerplate.theme.sidebar.brand.logo.text')) !!}">{!! config('boilerplate.theme.sidebar.brand.logo.text') !!}</span>
|
||||
</a>
|
||||
<div class="sidebar">
|
||||
@if(config('boilerplate.theme.sidebar.user.visible'))
|
||||
<div class="user-panel py-3 d-flex">
|
||||
<div class="user-panel d-flex align-items-center">
|
||||
<div class="image">
|
||||
<img src="{{ Auth::user()->avatar_url }}" class="avatar-img img-circle elevation-{{ config('boilerplate.theme.sidebar.user.shadow') }}" alt="{{ Auth::user()->name }}">
|
||||
</div>
|
||||
<div class="info">
|
||||
<a href="{{ route('boilerplate.user.profile') }}" class="d-block">{{ Auth::user()->name }}</a>
|
||||
<a href="{{ route('boilerplate.user.profile') }}" class="d-flex flex-wrap">
|
||||
<span class="mr-1">{{ Auth::user()->first_name }}</span>
|
||||
<span class="text-truncate text-uppercase font-weight-bolder">{{ Auth::user()->last_name }}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<nav class="mt-3">
|
||||
<nav class="mt-2">
|
||||
{!! $menu !!}
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@component('boilerplate::card')
|
||||
@empty($percents)
|
||||
{{ __('boilerplate::logs.list.empty-logs') }}
|
||||
@else
|
||||
<div class="row">
|
||||
<div class="mb-3 ml-auto mr-auto col-md-6 col-lg-3">
|
||||
<canvas id="stats-doughnut-chart" height="300"></canvas>
|
||||
@@ -40,6 +43,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endempty
|
||||
@slot('footer')
|
||||
<div class="text-right text-muted small">
|
||||
{!! __('boilerplate::logs.vendor') !!}
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="11" class="text-center">
|
||||
<span class="badge badge-pill badge-default">{{ trans('log-viewer::general.empty-logs') }}</span>
|
||||
<span class="badge badge-pill badge-default">{{ __('boilerplate::logs.list.empty-logs') }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@@ -28,15 +28,21 @@
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
@component('boilerplate::card', ['title' => __('boilerplate::logs.show.levels'), 'color' => 'info'])
|
||||
@include('boilerplate::logs._partials.levels')
|
||||
@endcomponent
|
||||
@component('boilerplate::card', ['title' => __('boilerplate::logs.show.loginfo'), 'color' => 'warning'])
|
||||
@include('boilerplate::logs._partials.informations')
|
||||
@endcomponent
|
||||
<div class="col-12 col-xl-3">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6 col-lg-6 col-xl-12">
|
||||
@component('boilerplate::card', ['title' => __('boilerplate::logs.show.levels'), 'color' => 'info'])
|
||||
@include('boilerplate::logs._partials.levels')
|
||||
@endcomponent
|
||||
</div>
|
||||
<div class="col-12 col-md-6 col-lg-6 col-xl-12">
|
||||
@component('boilerplate::card', ['title' => __('boilerplate::logs.show.loginfo'), 'color' => 'warning'])
|
||||
@include('boilerplate::logs._partials.informations')
|
||||
@endcomponent
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-9">
|
||||
<div class="col-12 col-xl-9">
|
||||
@component('boilerplate::card', ['title' => ucfirst(__('boilerplate::logs.show.file', ['date' => $date]))])
|
||||
<div class="table-responsive">
|
||||
<table id="entries" class="table table-sm">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@component('boilerplate::card', ['color' => 'warning', 'title' => 'CodeMirror'])
|
||||
Usage :
|
||||
<pre><x-boilerplate::codemirror name="code">.color { color: red; }</x-boilerplate::codemirror></pre>
|
||||
<x-boilerplate::codemirror name="code"><h1>CodeMirror demo</h1>
|
||||
@component('boilerplate::codemirror', ['name' => 'code'])<h1>CodeMirror demo</h1>
|
||||
<style>
|
||||
.color {
|
||||
color: red;
|
||||
@@ -12,7 +12,7 @@
|
||||
alert('demo');
|
||||
});
|
||||
</script>
|
||||
</x-boilerplate::codemirror>
|
||||
@endcomponent
|
||||
@slot('footer')
|
||||
<div class="small text-muted text-right">
|
||||
<a href="https://sebastienheyd.github.io/boilerplate/components/codemirror" target="_blank">component</a> /
|
||||
|
||||
@@ -7,38 +7,38 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6 d-flex">
|
||||
<x-boilerplate::icheck name="c1" label="" class="mb-0" checked />
|
||||
<x-boilerplate::icheck name="c1" label="" class="mb-0" />
|
||||
<x-boilerplate::icheck name="c1" label="Primary checkbox" class="mb-0" disabled />
|
||||
@component('boilerplate::icheck', ['name' => 'c1', 'label' => '', 'class' => 'mb-0', 'checked' => true])@endcomponent
|
||||
@component('boilerplate::icheck', ['name' => 'c1', 'label' => '', 'class' => 'mb-0'])@endcomponent
|
||||
@component('boilerplate::icheck', ['name' => 'c1', 'label' => 'Primary checkbox', 'class' => 'mb-0', 'disabled' => true])@endcomponent
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex">
|
||||
<x-boilerplate::icheck name="r1" type="radio" label="" class="mb-0" checked />
|
||||
<x-boilerplate::icheck name="r1" type="radio" label="" class="mb-0" />
|
||||
<x-boilerplate::icheck name="r1" type="radio" label="Primary radio" class="mb-0" disabled />
|
||||
@component('boilerplate::icheck', ['name' => 'r1', 'type' => 'radio', 'label' => '', 'class' => 'mb-0', 'checked' => true])@endcomponent
|
||||
@component('boilerplate::icheck', ['name' => 'r1', 'type' => 'radio', 'label' => '', 'class' => 'mb-0'])@endcomponent
|
||||
@component('boilerplate::icheck', ['name' => 'r1', 'type' => 'radio', 'label' => 'Primary checkbox', 'class' => 'mb-0', 'disabled' => true])@endcomponent
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6 d-flex">
|
||||
<x-boilerplate::icheck color="danger" name="c2" label="" class="mb-0" checked />
|
||||
<x-boilerplate::icheck color="danger" name="c2" label="" class="mb-0" />
|
||||
<x-boilerplate::icheck color="danger" name="c2" label="Danger checkbox" class="mb-0" disabled />
|
||||
@component('boilerplate::icheck', ['name' => 'c2', 'color' => 'danger', 'label' => '', 'class' => 'mb-0', 'checked' => true])@endcomponent
|
||||
@component('boilerplate::icheck', ['name' => 'c2', 'color' => 'danger', 'label' => '', 'class' => 'mb-0'])@endcomponent
|
||||
@component('boilerplate::icheck', ['name' => 'c2', 'color' => 'danger', 'label' => 'Primary checkbox', 'class' => 'mb-0', 'disabled' => true])@endcomponent
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex">
|
||||
<x-boilerplate::icheck color="danger" name="r2" type="radio" label="" class="mb-0" checked />
|
||||
<x-boilerplate::icheck color="danger" name="r2" type="radio" label="" class="mb-0" />
|
||||
<x-boilerplate::icheck color="danger" name="r2" type="radio" label="Danger radio" class="mb-0" disabled />
|
||||
@component('boilerplate::icheck', ['name' => 'r2', 'color' => 'danger', 'type' => 'radio', 'label' => '', 'class' => 'mb-0', 'checked' => true])@endcomponent
|
||||
@component('boilerplate::icheck', ['name' => 'r2', 'color' => 'danger', 'type' => 'radio', 'label' => '', 'class' => 'mb-0'])@endcomponent
|
||||
@component('boilerplate::icheck', ['name' => 'r2', 'color' => 'danger', 'type' => 'radio', 'label' => 'Primary checkbox', 'class' => 'mb-0', 'disabled' => true])@endcomponent
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6 d-flex">
|
||||
<x-boilerplate::icheck color="success" name="c3" label="" class="mb-0" checked />
|
||||
<x-boilerplate::icheck color="success" name="c3" label="" class="mb-0" />
|
||||
<x-boilerplate::icheck color="success" name="c3" label="Danger checkbox" class="mb-0" disabled />
|
||||
@component('boilerplate::icheck', ['name' => 'c3', 'color' => 'success', 'label' => '', 'class' => 'mb-0', 'checked' => true])@endcomponent
|
||||
@component('boilerplate::icheck', ['name' => 'c3', 'color' => 'success', 'label' => '', 'class' => 'mb-0'])@endcomponent
|
||||
@component('boilerplate::icheck', ['name' => 'c3', 'color' => 'success', 'label' => 'Primary checkbox', 'class' => 'mb-0', 'disabled' => true])@endcomponent
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex">
|
||||
<x-boilerplate::icheck color="success" name="r3" type="radio" label="" class="mb-0" checked />
|
||||
<x-boilerplate::icheck color="success" name="r3" type="radio" label="" class="mb-0" />
|
||||
<x-boilerplate::icheck color="success" name="r3" type="radio" label="Danger radio" class="mb-0" disabled />
|
||||
@component('boilerplate::icheck', ['name' => 'r3', 'color' => 'success', 'type' => 'radio', 'label' => '', 'class' => 'mb-0', 'checked' => true])@endcomponent
|
||||
@component('boilerplate::icheck', ['name' => 'r3', 'color' => 'success', 'type' => 'radio', 'label' => '', 'class' => 'mb-0'])@endcomponent
|
||||
@component('boilerplate::icheck', ['name' => 'r3', 'color' => 'success', 'type' => 'radio', 'label' => 'Primary checkbox', 'class' => 'mb-0', 'disabled' => true])@endcomponent
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -13,6 +13,6 @@
|
||||
</div>
|
||||
</div>
|
||||
@component('boilerplate::card')
|
||||
<x-boilerplate::datatable name="roles" />
|
||||
@component('boilerplate::datatable', ['name' => 'roles']) @endcomponent
|
||||
@endcomponent
|
||||
@endsection
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
</div>
|
||||
@component('boilerplate::card')
|
||||
<x-boilerplate::datatable name="users"/>
|
||||
@component('boilerplate::datatable', ['name' => 'users']) @endcomponent
|
||||
@endcomponent
|
||||
@endsection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user