HEX
Server: Apache/2.4.46 (Ubuntu)
System: Linux localhost 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64
User: root (0)
PHP: 7.4.16
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/fieldsblaze-heroku/resources/views/admin/trash-beat-plans.blade.php
@extends('admin.include.master')

@section('content')

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1>Deleted Beat Plans</h1>
                </div>
                <div class="col-sm-6 text-right">
                    <button type="button" class="btn btn-sm btn-outline-info mx-1" data-toggle="modal"
                        data-target="#addBeatPlan">Add New</button>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-12">
                    <div class="card">
					<form action="{{ url('delete-selected-area') }}" method="post" id="deleteSelectedRecord">
					@csrf
                        <div class="card-header">
                            <a href="{{ ('beat-plans') }}" class="btn btn-default btn-sm card-title px-2 mx-1">All <span class="badge badge-info">{{ $BeatPlan->count() }}</span></a>
                            <a href="{{ ('active-beat-plans') }}" class="btn btn-default btn-sm card-title px-2 mx-1">Active <span class="badge badge-info">{{ $ActiveBeatPlan->count() }}</span></a>
                                <a href="{{ ('inactive-beat-plans') }}" class="btn btn-default btn-sm card-title px-2 mx-1">Inactive <span class="badge badge-info">{{ $InactiveBeatPlan->count() }}</span></a>
                            <a href="{{ ('trash-beat-plans') }}" class="btn btn-info btn-sm card-title px-2 mx-1">Deleted <span class="badge badge-light">{{ $TrashBeatPlan->count() }}</span></a>
                            <div class="text-right">
								<button style="float:right; display:none" type="submit" class="btn btn-sm btn-outline-info mx-1" id="btn-submit" value="Delete Selected">Delete Selected</button>
							</div>

                        </div>
                        <!-- /.card-header -->
                        <div class="card-body">
                            <table id="targetTable" class="table table-bordered table-striped table-sm">
                                <thead>
                                    <tr>
										<th><input type="checkbox" id="checkAll" onchange="selectRecordDelete()"> All</th>
                                        <th>S.N.</th>
                                        <th>Plan Name</th>
                                        <th>Plan Type</th>
                                        <th>Date</th>
                                        <th>Sales Territory</th>
                                        <th>Sales Area</th>
                                        <!--<th>Dsitributor</th>
                                        <th>Retailer</th>-->
                                        <th>Status</th>
                                        <th>Created at</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach ($TrashBeatPlan as $BeatPlan)
                                    <tr>
										<td><input type="checkbox" id="checkItem" name="SelectedBeatPlan[]" value="{{ $BeatPlan->id }}" onchange="selectRecordDelete()"></td>
                                        <td>{{ $loop->iteration }}</td>
                                        <td><a
                                                href="{{ url('view-beat-plan',$BeatPlan->BeatPlanId) }}">{{ $BeatPlan->BeatPlanName }}</a>
                                        </td>
                                        <td>
                                            @if ($BeatPlan->BeatPlanType=='DistributorWise')
                                            <span class="badge badge-info">Distributor Wise</span>
                                            @else
                                            <span class="badge badge-warning">Sales Area Wise</span>
                                            @endif
                                        </td>
                                        <td>{{ date('d-M-y', strtotime($BeatPlan->BeatPlanDate)) }}</td>
                                        <td>{{ $BeatPlan->SalesTerritory }}</td>
                                        <td>{{ $BeatPlan->SalesAreaName }}</td>
                                        <!--<td>
                                            @if ($BeatPlan->DistributorName)
                                            {{ $BeatPlan->DistributorName }}
                                            @else
                                                N/A
                                            @endif
                                        </td>
                                        <td>
                                            @if ($BeatPlan->RetailerName)
                                            {{ $BeatPlan->RetailerName }}
                                            @else
                                                N/A
                                            @endif</td>-->
                                        
                                        <td>
                                            @if ($BeatPlan->Status=='1')
                                            <a href="{{ url('/status-update-beat-plan',$BeatPlan->id) }}"
                                                class="btn btn-success bg-success btn-xs" data-id="{{ $BeatPlan->id }}" style="pointer-events: none">Active</a>
                                            @else
                                            <a href="{{ url('/status-update-beat-plan',$BeatPlan->id) }}"
                                                class="btn btn-danger btn-xs" style="pointer-events: none">InActive</a>
                                            @endif
                                        </td>
                                        <td>
                                            @if ($BeatPlan->AdminCreated_by)
                                                {{ $BeatPlan->AdminCreated_by }}
                                                @else
                                                {{ $BeatPlan->Created_by }}
                                               @endif,
                                            {{ date('d-M-y h:i:s a', strtotime($BeatPlan->Created_at)) }}
                                        </td>
                                       
                                        <td>
                                            <div class="btn-group">
                                                <button type="button"
                                                    class="btn btn-default btn-sm dropdown-toggle dropdown-icon"
                                                    data-toggle="dropdown" aria-expanded="false">
                                                </button>
                                                <div class="dropdown-menu dropdown-menu-right" role="menu">
                                                    {{-- <button type="button" class="dropdown-item btn btn-default"
                                                        id="{{ $BeatPlan->id }}"
                                                        onclick="editRecord('{{ $BeatPlan->id }}')">Edit</button> --}}
                                                        <button type="button" class="dropdown-item btn btn-default" data-id="{{ $BeatPlan->BeatPlanId }}"
                                                            onclick="restoreRecord('{{ $BeatPlan->BeatPlanId }}')">Restore</button>
                                                    <button type="button" class="dropdown-item btn btn-default"
                                                        data-id="{{ $BeatPlan->BeatPlanId }}"
                                                        onclick="deleteBeatPlan('{{ $BeatPlan->BeatPlanId }}');">Delete</button>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    @endforeach

                                </tbody>

                            </table>
                        </div>
                        <!-- /.card-body -->
                    </div>
                    <!-- /.card -->
					</form>
                </div>
                <!-- /.col -->
            </div>
            <!-- /.row -->
        </div>
        <!-- /.container-fluid -->
    </section>
    <!-- /.content -->
</div>
<x-CountryAndStateList />
<x-BeatPlansModal />
<!-- /.content-wrapper -->
@endsection