<commit_before>@extends('template')

@section('content')
    <?php

    $posts = get_posts([
        'post_type' => 'touren',
        'posts_per_page' => - 1,
        'order' => 'DESC',
        'orderby' => 'dateTo',
        'meta_query' => [
            [
                'key' => 'dateTo',
                'value' => date("Y-m-d"),
                'compare' => '<=',
                'type' => 'DATE'
            ],
        ],
    ]);
    print "<pre>" . print_r($posts, true) . "</pre>";
    foreach($posts as $post){
        $meta = get_post_meta($post->ID);
        print "<pre>" . print_r($meta, true) . "</pre>";
    }


    ?>
    @if($showEdit)
        <p><a class="button-primary" href="?page={{ $_GET['page'] }}&view=new">Neuer Eintrag</a></p>
    @endif
    <table id="mitglieder" class="row-border stripe responsive no-link-underline" cellspacing="0" width="100%">
        <thead>
        <tr>
            <th class="dt-left">Firma</th>
            <th class="dt-left">Name</th>
            <th class="dt-left">Strasse</th>
            <th class="dt-left">PLZ Ort</th>
            <th class="dt-left">Tel P</th>
            <th class="dt-left">Tel G</th>
            <th class="dt-left">Tel M</th>
            <th class="dt-left">Email</th>
            <th class="dt-left">Typ</th>
            <th class="dt-right no-sort"></th>
        </tr>
        </thead>
        <tbody>
        @foreach($users as $user)
            <tr>
                <td>{{ $user->company }}</td>
                <td>{{ $user->last_name . ' ' . $user->first_name }}</td>
                <td>{{ $user->street }}</td>
                <td>{{ $user->zip . ' ' .$user->location }}</td>
                <td>{{ $user->phone_private }}</td>
                <td>{{ $user->phone_work }}</td>
                <td>{{ $user->phone_mobile }}</td>
                <td>{{ $user->email }}</td>
                <td>{{ $user->address_role_name }}</td>
                <td class="dt-right"><a href="?page={{ $_GET['page'] }}&view=detail&id={{ $user->ID }}" title="Anzeigen"><span class="dashicons dashicons-visibility"></span></a> @if($showEdit) <a class="delete" data-id="{{ $user->ID }}" title="Löschen" href="javascript:void(0)"><span class="dashicons dashicons-trash"></span></a> @endif</td>
            </tr>
        @endforeach
        </tbody>
        @endsection

        @section('scripts')
            <script type="text/javascript">
                jQuery(document).ready(function() {
                    jQuery('#mitglieder').DataTable({
                        language: {
                            url: "//cdn.datatables.net/plug-ins/1.10.13/i18n/German.json"
                        },
                        columnDefs: [
                            { targets: 'no-sort', orderable: false }
                        ]
                    });

                    jQuery('.delete').click(function(){
                        var id = jQuery(this).data('id');
                        swal({
                            title: 'Sind Sie sicher?',
                            text: "Der Löschvorgang kann nicht Rückgängig gemacht werden",
                            type: 'warning',
                            showCancelButton: true,
                            confirmButtonColor: '#3085d6',
                            cancelButtonColor: '#d33',
                            confirmButtonText: 'Ja, Löschen',
                            cancelButtonText: 'Abbrechen',
                        }).then(function () {
                            document.location.href = document.location.href + '&action=delete&id=' + id;
                        })
                    });
                } );
            </script>
@endsection<commit_msg>Update removed 'Überbleibsel' in Adressverwaltung<commit_after>@extends('template')

@section('content')
    @if($showEdit)
        <p><a class="button-primary" href="?page={{ $_GET['page'] }}&view=new">Neuer Eintrag</a></p>
    @endif
    <table id="mitglieder" class="row-border stripe responsive no-link-underline" cellspacing="0" width="100%">
        <thead>
        <tr>
            <th class="dt-left">Firma</th>
            <th class="dt-left">Name</th>
            <th class="dt-left">Strasse</th>
            <th class="dt-left">PLZ Ort</th>
            <th class="dt-left">Tel P</th>
            <th class="dt-left">Tel G</th>
            <th class="dt-left">Tel M</th>
            <th class="dt-left">Email</th>
            <th class="dt-left">Typ</th>
            <th class="dt-right no-sort"></th>
        </tr>
        </thead>
        <tbody>
        @foreach($users as $user)
            <tr>
                <td>{{ $user->company }}</td>
                <td>{{ $user->last_name . ' ' . $user->first_name }}</td>
                <td>{{ $user->street }}</td>
                <td>{{ $user->zip . ' ' .$user->location }}</td>
                <td>{{ $user->phone_private }}</td>
                <td>{{ $user->phone_work }}</td>
                <td>{{ $user->phone_mobile }}</td>
                <td>{{ $user->email }}</td>
                <td>{{ $user->address_role_name }}</td>
                <td class="dt-right"><a href="?page={{ $_GET['page'] }}&view=detail&id={{ $user->ID }}" title="Anzeigen"><span class="dashicons dashicons-visibility"></span></a> @if($showEdit) <a class="delete" data-id="{{ $user->ID }}" title="Löschen" href="javascript:void(0)"><span class="dashicons dashicons-trash"></span></a> @endif</td>
            </tr>
        @endforeach
        </tbody>
        @endsection

        @section('scripts')
            <script type="text/javascript">
                jQuery(document).ready(function() {
                    jQuery('#mitglieder').DataTable({
                        language: {
                            url: "//cdn.datatables.net/plug-ins/1.10.13/i18n/German.json"
                        },
                        columnDefs: [
                            { targets: 'no-sort', orderable: false }
                        ]
                    });

                    jQuery('.delete').click(function(){
                        var id = jQuery(this).data('id');
                        swal({
                            title: 'Sind Sie sicher?',
                            text: "Der Löschvorgang kann nicht Rückgängig gemacht werden",
                            type: 'warning',
                            showCancelButton: true,
                            confirmButtonColor: '#3085d6',
                            cancelButtonColor: '#d33',
                            confirmButtonText: 'Ja, Löschen',
                            cancelButtonText: 'Abbrechen',
                        }).then(function () {
                            document.location.href = document.location.href + '&action=delete&id=' + id;
                        })
                    });
                } );
            </script>
@endsection
{'fraction_non_alphanumeric': 0.17698217132917815, 'fraction_numerical': 0.005652993187418466, 'mean_word_length': 1.3925104022191401, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 170, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6893691', 'n_tokens_mistral': 2053, 'n_tokens_neox': 1948, 'n_words': 345}