@extends('admin.partials.master')
@section('admin_content')
<section id="dashboard-ecommerce">
    <div class="row">
        <div class="col-sm-12">
            <div class="card">
                <div class="card-header pb-0">
                    <h4 class="card-title d-flex justify-content-between">
                        <div>Package Details</div>
                        <div>
                            <a href="{{ route('admin.package.index') }}" class="btn btn-primary btn-sm">
                                <i class="bx bx-left-arrow"></i> Package Lists
                            </a>
                        </div>
                    </h4>
                </div>
                <div class="card-content">
                    <div class="card-body card-dashboard">
                        <div class="table-responsive">
                            <table class="table table-bordered">
                                <tr>
                                    <td>Package Name</td>
                                    <td>{{ $data->name }}</td>
                                </tr>
                                <tr>
                                    <td>Label</td>
                                    <td>{{ $data->label }}</td>
                                </tr>
                                <tr>
                                    <td>Tab</td>
                                    <td>{{ strtoupper($data->tab) }}</td>
                                </tr>
                                <tr>
                                    <td>Photo</td>
                                    <td>
                                        <img src="{{ asset(view_image($data->photo)) }}" width="70" alt="Package Photo">
                                    </td>
                                </tr>
                                <tr>
                                    <td>Price</td>
                                    <td>{{ price($data->price) }}</td>
                                </tr>
                                <tr>
                                    <td>Validity (Days)</td>
                                    <td>{{ $data->validity }}</td>
                                </tr>
                         
                                <tr>
                                    <td>Daily Watch Limit</td>
                                    <td>{{ $data->daily_watch_limit }}</td>
                                </tr>
                             
                                <tr>
                                    <td>Commission with Avg Amount</td>
                                    <td>{{ price($data->commission_with_avg_amount) }}</td>
                                </tr>
                                <tr>
                                    <td>First Refer Commission (%)</td>
                                    <td>{{ $data->ref1 }}%</td>
                                </tr>
                                <tr>
                                    <td>Second Refer Commission (%)</td>
                                    <td>{{ $data->ref2 }}%</td>
                                </tr>
                                <tr>
                                    <td>Third Refer Commission (%)</td>
                                    <td>{{ $data->ref3 }}%</td>
                                </tr>
                                <tr>
                                    <td>Description</td>
                                    <td>{{ $data->desc ?? 'N/A' }}</td>
                                </tr>
                                <tr>
                                    <td>Is Default</td>
                                    <td>{{ $data->is_default ? 'Yes' : 'No' }}</td>
                                </tr>
                                <tr>
                                    <td>Status</td>
                                    <td>{{ ucfirst($data->status) }}</td>
                                </tr>
                                <tr>
                                    <td>Created At</td>
                                    <td>{{ $data->created_at->format('d-m-Y H:i') }}</td>
                                </tr>
                                <tr>
                                    <td>Updated At</td>
                                    <td>{{ $data->updated_at->format('d-m-Y H:i') }}</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
@endsection
