%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/silvzytp/dsr_code/resources/views/backend/pages/manager/
Upload File :
Create Path :
Current File : /home/silvzytp/dsr_code/resources/views/backend/pages/manager/view.blade.php

@extends('layouts.backend')
@section('title', $siteTitle)

@push('styles')

@endpush

@section('content')

    <div class="row">
        <div class="col-12 col-md-8 mx-auto">
            <div class="ibox">
                <div class="ibox-head">
                    <div class="ibox-title w-100">Details - {{ $admin->name }}</div>
                </div>
                <div class="ibox-body px-0">
                    <table class="w-100 table table-sm table-borderless border-secondary">
                        <tr>
                            <td class="text-left"><strong>Role Name:</strong></td>
                            <td class="text-left"><span class="badge badge-danger">Manager</span></td>
                        </tr>
                        <tr>
                            <td class="text-left"><strong>Full Name:</strong></td>
                            <td class="text-left">{{ $admin->name }}</td>
                        </tr>
                        <tr>
                            <td class="text-left"><strong>Email:</strong></td>
                            <td class="text-left">{{ $admin->email }}'</td>
                        </tr>
                        <tr>
                            <td class="text-left"><strong>Phone No:</strong></td>
                            <td class="text-left">{{ $admin->phone_no ?? 'N/A' }}</td>
                        </tr>
                        <tr>
                            <td class="text-left"><strong>Target:</strong></td>
                            <td class="text-left">{{ $admin->target ?? 0.00 }}</td>
                        </tr>
                        <tr>
                            <td class="text-left"><strong>Sale Target:</strong></td>
                            <td class="text-left">{{ $admin->s_target ?? 0.00 }}</td>
                        </tr>
                        <tr>
                            <td class="text-left"><strong>Created At</strong></td>
                            <td class="text-left">{{ date_format($admin->created_at, 'd-m-Y') }}</td>
                        </tr>
                    </table>
                </div>
            </div>
            
            
            <div class="ibox">
                <div class="ibox-head">
                    <div class="ibox-title w-100">Assign Agents</div>
                </div>
                <div class="ibox-body px-0">
                    <table class="w-100 table table-sm table-borderless border-secondary">
                        <thead>
                            <th>SL</th>
                            <th>Name</th>
                            <th>Email</th>
                            <th>Target</th>
                        </thead>
                        <tbody>
                            @php
                                $target = 0;
                            @endphp
                            @forelse($admin->agents as $key=>$agent)
                                @php
                                    $target += $agent->target;
                                @endphp
                                <tr>
                                   <td>{{ $key+1 }}</td>
                                   <td>{{ $agent->name }}</td>
                                   <td>{{ $agent->email }}</td>
                                   <td>{{ $agent->target }}</td>
                                <tr>
                            @empty
                                <tr>
                                    <td colspan="4" class="text-danger text-center">No Data Found!</td>
                                </tr>
                            @endforelse
                        </tbody>
                        <tfoot>
                            <tr>
                                <td></td>
                                <td></td>
                                <td class="text-right"><strong>Total Target:</strong></td>
                                <td><strong>{{ $target }}</strong></td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>

@endsection

@push('scripts')

@endpush

Zerion Mini Shell 1.0