Homparty dev
This commit is contained in:
parent
9252094a04
commit
ac0d5b781e
60 changed files with 3443 additions and 293 deletions
|
|
@ -1,21 +1,87 @@
|
|||
@extends('layouts.layout-2-without')
|
||||
|
||||
@section('content')
|
||||
<h4 class="font-weight-bold py-2 mb-2 d-flex justify-content-between align-items-center w-100 ">
|
||||
<div>Homeparty / {{ $homeparty->name }} - {{ $homeparty->date }}</div>
|
||||
<a href="{{route('user_homeparty_guests', [$homeparty->id])}}" class="btn btn-sm btn-default float-right">zurück</a>
|
||||
</h4>
|
||||
|
||||
{!! Form::open(['url' => route('homeparty', [$homeparty_user->token]), 'class' => 'form-horizontal', 'id'=>'homeparty-user-form-validation']) !!}
|
||||
<hr>
|
||||
|
||||
@if($homeparty_user === null)
|
||||
<h4 class="font-weight-bold py-2 mb-2 d-flex justify-content-between align-items-center w-100 ">
|
||||
<div>Homeparty / {{ $homeparty->name }} - {{ $homeparty->date }}</div>
|
||||
</h4>
|
||||
@if(Session::has('alert-save'))
|
||||
<div class="alert alert-dark-secondary alert-dismissible fade show">
|
||||
<div class="font-weight-bold">
|
||||
{{__('saved')}}: {{__('The changes have been saved.')}}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@php($g_count = 1)
|
||||
@foreach($homeparty->homeparty_users as $homeparty_user)
|
||||
<div class="card mb-4">
|
||||
<div class="card-body d-flex justify-content-between align-items-start pb-2">
|
||||
<div>
|
||||
<a href="{{route('homeparty', [$homeparty->token, $homeparty_user->id])}}" class="text-body text-big font-weight-semibold">
|
||||
@if($homeparty_user->is_host)
|
||||
<span class="text-muted">Gastgeber/in: </span>
|
||||
@else
|
||||
<span class="text-muted">Gast {{$g_count++}}: </span>
|
||||
@endif
|
||||
{{$homeparty_user->billing_firstname}} {{$homeparty_user->billing_lastname}}
|
||||
</a>
|
||||
{{-- <span class="badge badge-success align-text-bottom ml-1">offen ...</span> --}}
|
||||
</div>
|
||||
<div>
|
||||
<a href="{{route('homeparty', [$homeparty->token, $homeparty_user->id])}}" class="btn btn-sm btn-secondary mr-2"><i class="fa fa-edit"></i> bearbeiten</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="progress rounded-0" style="height: 2px;">
|
||||
<div class="progress-bar" style="width: 100%;"></div>
|
||||
</div>
|
||||
<div class="card-body pt-1 pb-3">
|
||||
{{$homeparty->description}}
|
||||
</div>
|
||||
<div class="card-body pt-0">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="text-muted small">Adresse</div>
|
||||
<div class="font-weight-bold">{{$homeparty_user->billing_address}}
|
||||
{{$homeparty_user->billing_zipcode}}
|
||||
{{$homeparty_user->city}}
|
||||
@if($homeparty_user->billing_country_id){{ $homeparty_user->billing_country->getLocated() }}@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="text-muted small">E-Telefon</div>
|
||||
<div class="font-weight-bold">{{$homeparty_user->billing_phone}}</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="text-muted small">E-Mail</div>
|
||||
<div class="font-weight-bold">{{$homeparty_user->billing_email}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<a href="{{route('homeparty', [$homeparty->token, 'new'])}}" class="btn btn-md btn-secondary rounded-pill"><span class="ion ion-md-add"></span> Neue Gast anlegen</a>
|
||||
|
||||
@else
|
||||
<h4 class="font-weight-bold py-2 mb-2 d-flex justify-content-between align-items-center w-100 ">
|
||||
<div>Homeparty / {{ $homeparty->name }} - {{ $homeparty->date }}</div>
|
||||
<a href="{{route('homeparty', [$homeparty->token])}}" class="btn btn-sm btn-default float-right">zurück</a>
|
||||
</h4>
|
||||
|
||||
{!! Form::open(['url' => route('homeparty', [$homeparty->token, $homeparty_user->id]), 'class' => 'form-horizontal', 'id'=>'homeparty-user-form-validation']) !!}
|
||||
@if(Session::has('alert-save'))
|
||||
|
||||
<div class="alert alert-dark-secondary alert-dismissible fade show">
|
||||
<div class="font-weight-bold">
|
||||
{{__('saved')}}: {{__('The changes have been saved.')}}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
<div class="card mb-4">
|
||||
<div class="col-md-12 px-4 pt-4">
|
||||
<h6 class="mb-4">Eingabe Deiner persönlichen Daten für die Homeparty</h6>
|
||||
|
|
@ -24,7 +90,7 @@
|
|||
<h5 class="card-header">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
@if($homeparty_user->is_host) Gastgeber, @else Gast-, @endif Rechungsadresse
|
||||
@if($homeparty_user->is_host) Gastgeber/in, @else Gast-, @endif Rechungsadresse
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<span class="text-tiny float-right">* {{trans('register.required_fields')}}</span>
|
||||
|
|
@ -34,21 +100,21 @@
|
|||
</h5>
|
||||
@include('user.homeparty._edit')
|
||||
<hr class="mt-0">
|
||||
<div class="form-row px-4">
|
||||
<div class="form-group">
|
||||
<label class="custom-control custom-checkbox m-2 ">
|
||||
<input type="checkbox" class="custom-control-input" name="check_for_ot" id="checkbox_for_me" required>
|
||||
<span class="custom-control-label secondary">
|
||||
<span class="fa fa-angle-double-left text-primary fa-lg"></span>
|
||||
Hiermit willige ich in die im Rahmen der <button type="button" class="btn btn-outline-primary btn-xs update_modal_data_load" data-url="https://my.mivita.test/loading/modal" data-data="data_protection" data-target="#modal-loading">Datenschutzerklärung</button>
|
||||
genannte Datenverarbeitung ein. Ich wurde darüber informiert, dass ich diese Einwilligung jederzeit widerrufen kann.*
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-row px-4">
|
||||
<div class="form-group">
|
||||
<label class="custom-control custom-checkbox m-2 ">
|
||||
<input type="checkbox" class="custom-control-input" name="check_for_ot" id="checkbox_for_me" required>
|
||||
<span class="custom-control-label secondary">
|
||||
<span class="fa fa-angle-double-left text-primary fa-lg"></span>
|
||||
Hiermit willige ich in die im Rahmen der <button type="button" class="btn btn-outline-primary btn-xs update_modal_data_load" data-url="https://my.mivita.test/loading/modal" data-data="data_protection" data-target="#modal-loading">Datenschutzerklärung</button>
|
||||
genannte Datenverarbeitung ein. Ich wurde darüber informiert, dass ich diese Einwilligung jederzeit widerrufen kann.*
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-left mt-3">
|
||||
<button type="submit" class="btn btn-secondary mr-2 mb-2" name="action" value="homeparty-user-store">{{ __('Änderungen speichern') }}</button>
|
||||
<button type="submit" class="btn btn-secondary mr-2 mb-2" name="action" value="homeparty-user-store"> @if($homeparty_user->id) {{ __('Änderungen speichern') }} @else {{ __('speichern') }} @endif</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
|
@ -131,4 +197,6 @@
|
|||
|
||||
});
|
||||
</script>
|
||||
|
||||
@endif
|
||||
@endsection
|
||||
Loading…
Add table
Add a link
Reference in a new issue