%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/silvzytp/crm-dub-code/resources/views/backend/pages/compare/
Upload File :
Create Path :
Current File : /home/silvzytp/crm-dub-code/resources/views/backend/pages/compare/file-compare.blade.php

@extends('layouts.backend')
@section('title', $siteTitle)
@push('styles')
    <style>
        table tbody tr td{
            text-align: left !important;
        }
    </style>
@endpush

@section('content')

    <div class="row">
        @foreach ($compareData as $compare)
            <div class="col-md-6 mb-4">
                <div class="card">
                    <div class="card-header">
                        <div class="card-title">File Name: {{ $compare->file_name }}
                        </div>
                    </div>
                    <div class="card-body">
                        <table class="w-100 table table-sm table-borderless">
                            <tbody>
                                @php
                                    $openCount = DB::table('collings')->where(['file_name'=>$compare->file_name,'status'=>1])->count();
                                    $closedCount = DB::table('collings')->where(['file_name'=>$compare->file_name,'status'=>2])->count();
                                    $potentialCount = DB::table('collings')->where(['file_name'=>$compare->file_name,'potential'=>1])->count();
                                @endphp
                                <tr>
                                    <td>Open</td>
                                    <td>:</td>
                                    <td>{{ $openCount }}</td>
                                </tr>
                                <tr>
                                    <td>Closed</td>
                                    <td>:</td>
                                    <td>{{ $closedCount }}</td>
                                </tr>
                                <tr>
                                    <td>Potential</td>
                                    <td>:</td>
                                    <td>{{ $potentialCount }}</td>
                                </tr>

                                @foreach ($sub_status as $status)
                                    @php
                                        $data = DB::table('collings')->where(['file_name'=>$compare->file_name,'sub_status'=>$status->id])->count();
                                    @endphp
                                    <tr>
                                        <td>{{ $status->name }}</td>
                                        <td>:</td>
                                        <td><strong>{{ $data }}</strong></td>
                                    </tr>
                                @endforeach
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        @endforeach
    </div>

@endsection

@push('scripts')
<script>


</script>
@endpush

Zerion Mini Shell 1.0