@extends('layouts.app') @section('content')
Personaltraining Nutzerübersicht
first()->contract_break) style="background-color:rgba(255, 255, 0, 0.5);" @endif @if($info->first()->contract_terminated || $info->first()->locked == 1) style="background-color:rgba(255, 0, 0, 0.5);" @endif>
@if($info->first()->locked == 1) @endif @if($info->first()->contract_type == 1) @if(!$info->first()->contract_terminated) @endif @if($info->first()->contract_terminated) @endif @else @endif
Kunde - Vertragsnummer: {{$user->name}} - {{$info->first()->contractnumber}}
Vertragsbeschreibung: {{$info->first()->contract_description}}
Vertragsbeginn: {{$info->first()->contract_begin}}
Vertrag vorübergehend gesperrt: {{$info->first()->locked_reason}}
Vertragstyp: Mit Vertragslaufzeit
Vertragslaufzeit - Vertragslaufzeit Gesamt inkl. Verlängerungen: {{$info->first()->contract_duration}} Wochen - {{$info->first()->total_contract_duration}} Wochen
Vertragsende bei fristgerechter Kündigung: {{date('D d.m.Y', strtotime($info->first()->calculated_end))}}
Kündigungsfrist: {{$info->first()->contract_renewal}} @if($info->first()->contract_renewal_type == 1)Wochen @else Monate @endif
Nächste Verlängerung - um x @if($info->first()->contract_renewal_time_type == 1) Wochen @else Monate @endif: {{date('D d.m.Y', strtotime($info->first()->next_renewal))}} - {{$info->first()->contract_renewal_time}} @if($info->first()->contract_renewal_type == 1)Wochen @else Monate @endif
Automatische Verlängerung um (Einheiten): {{$info->first()->renewal_units}}
Vertragsende: {{date('D d.m.Y', strtotime($info->first()->enddate))}}
Vertragstyp: Ohne Vertragslaufzeit
Trainer: {{$info->first()->trainer()->first()->name}}
Trainer Ersatz: {{$info->first()->trainersubstitution()->first()->name}}

Gesamt-Guthaben: {{$info->first()->available_units}} Einheiten á 30min

Einheiten pro Woche: {{$info->first()->numberweek}}

Preis pro Einheit: {{$info->first()->contract_unit_costs}}€

@if(in_array(29, $buttons->toArray()))
@if(!$info->first()->contract_terminated && !($info->first()->contract_break) && !($info->first()->locked))
@endif
@endif @if(in_array(29, $buttons->toArray())) @if($info->first()->contract_type == 1) @if($info->first()->contract_terminated || $info->first()->contract_break || $info->first()->locked)

@endif @if(!$info->first()->contract_terminated && !$info->first()->contract_break && !$info->first()->locked)




@endif @endif @endif

Guthaben @if(in_array(29, $buttons->toArray())) @endif

@if(in_array(29, $buttons->toArray())) @endif @foreach($credits as $credit) @if(in_array(29, $buttons->toArray())) @endif @endforeach
Datum Beschreibung GuthabenAktionen
{{date('D d.m.Y', strtotime($credit->created_at))}} {{$credit->reason}} {{$credit->units}} @if(strcmp($credit->reason,"Anfangsbuchung")!== 0) @else @endif
@if(!empty($breaks))

Vertragspausen

@foreach($breaks as $break) @endforeach
Beginn Ende
{{date('D d.m.Y', strtotime($break->contract_break_date_from))}} {{date('D d.m.Y', strtotime($break->contract_break_date_to))}}
@endif

Gebuchte Trainings @if(in_array(30, $buttons->toArray())) @endif

@foreach($bookings as $booking) @if(!is_null($booking->name)) @if(is_null($booking->correction)||(($booking->correction)!=0||($booking->units)!=0)) units)==0) style="color: red" title="Löschung noch nicht bestätigt!" @endif @if(($booking->correction)!=0) style="color: orange" title="Korrektur noch nicht bestätigt!" @endif> @endif @endif @endforeach
Trainer Datum Gespeichert am Korrekturbegründung Buchung
{{$booking->name}} {{date('D d.m.Y', strtotime($booking->date))}} {{date('D d.m.Y', strtotime($booking->updated_at))}} {!! str_replace("\r\n","
",$booking->reason) !!}
@if(($booking->units)!=0){{$booking->units}}@endif @if(($booking->units)>0)@if(in_array(30, $buttons->toArray())) @endif @endif
@if(in_array(29, $buttons->toArray())) @if(in_array(30, $buttons->toArray())) @endif @endif @if(in_array(30, $buttons->toArray())) @endif @endsection