Your Shop creates, verify user
This commit is contained in:
parent
c129a44383
commit
ccc2af4bf7
76 changed files with 3728 additions and 1477 deletions
|
|
@ -1,4 +1,4 @@
|
|||
@extends('layouts.layout-2-2')
|
||||
@extends('layouts.layout-2')
|
||||
|
||||
@section('content')
|
||||
<div class="card mb-4">
|
||||
43
resources/views/admin/lead_edit.blade.php
Normal file
43
resources/views/admin/lead_edit.blade.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
@extends('layouts.layout-2')
|
||||
|
||||
@section('content')
|
||||
|
||||
@if ($errors->any())
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="alert alert-danger">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<h4 class="font-weight-bold py-2 mb-2">
|
||||
{{ __('Create/Edit Contact') }}
|
||||
</h4>
|
||||
|
||||
{!! Form::open(['url' => route('admin_lead_store'), 'class' => 'form-horizontal', 'id'=>'lead-form-validation']) !!}
|
||||
<input type="hidden" name="user_id" id="user_id" value="@if($user->id>0){{$user->id}}@else new @endif">
|
||||
|
||||
@include('user.form')
|
||||
|
||||
@if(!$user->id || $user->id == 'new')
|
||||
@include('user.data_verify')
|
||||
@endif
|
||||
|
||||
|
||||
<div class="text-left mt-3">
|
||||
<button type="submit" class="btn btn-submit">{{ __('save') }}</button>
|
||||
|
||||
<a href="{{ route('admin_leads') }}" class="btn btn-default">{{ __('abort') }}</a>
|
||||
</div>
|
||||
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
@endsection
|
||||
105
resources/views/admin/leads.blade.php
Normal file
105
resources/views/admin/leads.blade.php
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
@extends('layouts.layout-2')
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
<h4 class="font-weight-bold py-2 mb-2">
|
||||
{{ __('Contacts') }}
|
||||
</h4>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-datatable table-responsive">
|
||||
<div class="ml-4">
|
||||
<a href="{{ route('admin_lead_edit', ['new']) }}" class="btn btn-sm btn-primary">{{__('create new Contact')}}</a>
|
||||
</div>
|
||||
<table class="datatables-leads table table-striped table-bordered">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{__('E-Mail')}}</th>
|
||||
<th>{{__('Vorname')}}</th>
|
||||
<th>{{__('Nachname')}}</th>
|
||||
<th>{{__('verifiziert')}}</th>
|
||||
<th>{{__('freigegeben')}}</th>
|
||||
<th>{{__('Einv.-Erkl.')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<div class="mt-4 ml-4">
|
||||
<a href="{{ route('admin_lead_edit', ['new']) }}" class="btn btn-sm btn-primary">{{__('create new Contact')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
|
||||
$('.datatables-leads').dataTable({
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"ajax": '{!! route('datatables-leads') !!}',
|
||||
"columns": [
|
||||
{data: 'action', orderable: false, searchable: false},
|
||||
{ data: 'email', name: 'email' },
|
||||
{ data: 'first_name', name: 'account.first_name' },
|
||||
{ data: 'last_name', name: 'account.last_name' },
|
||||
{ data: 'confirmed', name: 'confirmed' },
|
||||
{ data: 'active', name: 'active' },
|
||||
{ data: 'agreement', name: 'agreement' }
|
||||
],
|
||||
"bLengthChange": false,
|
||||
"iDisplayLength": 50,
|
||||
"language": {
|
||||
"url": "/js/German.json"
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
<?php /*
|
||||
<!-- Filters -->
|
||||
<!-- <div class="ui-bordered px-4 pt-4 mb-4">
|
||||
<div class="form-row align-items-center">
|
||||
<div class="col-md mb-4">
|
||||
<label class="form-label">Filter1</label>
|
||||
<select class="custom-select">
|
||||
<option>Any</option>
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md mb-4">
|
||||
<label class="form-label">Filter2</label>
|
||||
<select class="custom-select">
|
||||
<option>Any</option>
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md mb-4">
|
||||
<label class="form-label">Filter3</label>
|
||||
<select class="custom-select">
|
||||
<option>Any</option>
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md mb-4">
|
||||
<label class="form-label">Filter4</label>
|
||||
<input type="text" id="user-list-latest-activity" class="form-control" placeholder="Any">
|
||||
</div>
|
||||
<div class="col-md col-xl-2 mb-4">
|
||||
<label class="form-label d-none d-md-block"> </label>
|
||||
<button type="button" class="btn btn-secondary btn-block">Show</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
*/?>
|
||||
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
</div>
|
||||
@endif
|
||||
|
||||
<h4 class="font-weight-bold py-3 mb-0">
|
||||
<h4 class="font-weight-bold py-2 mb-2">
|
||||
{{ __('Create/Edit Produkt') }}
|
||||
</h4>
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
</div>
|
||||
@endif
|
||||
|
||||
<h4 class="font-weight-bold py-3 mb-4">
|
||||
<h4 class="font-weight-bold py-2 mb-2">
|
||||
{{ __('Create/Edit Contact') }}
|
||||
</h4>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
@section('content')
|
||||
|
||||
|
||||
<h4 class="font-weight-bold py-3 mb-4">
|
||||
<h4 class="font-weight-bold py-2 mb-2">
|
||||
{{ __('User') }}
|
||||
</h4>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue