@extends('dashboard.admin.layouts.master')
@section('content')
    <section class="section">
        <div class="section-header">
            <h1>Dashboard</h1>
        </div>
        <div class="row">
            <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                <div class="card card-statistic-1">
                    <div class="card-icon bg-primary">
                        <i class="fas fa-ship"></i>
                    </div>
                    <div class="card-wrap">
                        <div class="card-header">
                            <h4>Total Shipments</h4>
                        </div>
                        <div class="card-body">
                            {{ $shipmentsCount }}
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                <div class="card card-statistic-1">
                    <div class="card-icon bg-danger">
                        <i class="fas fa-pause"></i>
                    </div>
                    <div class="card-wrap">
                        <div class="card-header">
                            <h4>On Hold</h4>
                        </div>
                        <div class="card-body">
                            {{ $shipmentOnHoldCount }}
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                <div class="card card-statistic-1">
                    <div class="card-icon bg-warning">
                        <i class="fas fa-check"></i>
                    </div>
                    <div class="card-wrap">
                        <div class="card-header">
                            <h4>Out For Delivery</h4>
                        </div>
                        <div class="card-body">
                            {{ $shipmentOutForDeliveryCount }}
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                <div class="card card-statistic-1">
                    <div class="card-icon bg-success">
                        <i class="fas fa-truck-moving"></i>
                    </div>
                    <div class="card-wrap">
                        <div class="card-header">
                            <h4>In Transit</h4>
                        </div>
                        <div class="card-body">
                            {{ $shipmentInTransitCount }}
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                <div class="card card-statistic-1">
                    <div class="card-icon bg-primary">
                        <i class="fas fa-ship"></i>
                    </div>
                    <div class="card-wrap">
                        <div class="card-header">
                            <h4>En Route</h4>
                        </div>
                        <div class="card-body">
                            {{ $shipmentEnRouteCount }}
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                <div class="card card-statistic-1">
                    <div class="card-icon bg-danger">
                        <i class="fas fa-times"></i>
                    </div>
                    <div class="card-wrap">
                        <div class="card-header">
                            <h4>Cancelled</h4>
                        </div>
                        <div class="card-body">
                            {{ $shipmentCancelledCount }}
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                <div class="card card-statistic-1">
                    <div class="card-icon bg-warning">
                        <i class="fas fa-truck"></i>
                    </div>
                    <div class="card-wrap">
                        <div class="card-header">
                            <h4>Delivered</h4>
                        </div>
                        <div class="card-body">
                            {{ $shipmentDeliveredCount }}
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                <div class="card card-statistic-1">
                    <div class="card-icon bg-success">
                        <i class="fas fa-truck-loading"></i>
                    </div>
                    <div class="card-wrap">
                        <div class="card-header">
                            <h4>Returned</h4>
                        </div>
                        <div class="card-body">
                            {{ $shipmentReturnedCount }}
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                <div class="card card-statistic-1">
                    <div class="card-icon bg-success">
                        <i class="fas fa-truck-moving"></i>
                    </div>
                    <div class="card-wrap">
                        <div class="card-header">
                            <h4>Arrived</h4>
                        </div>
                        <div class="card-body">
                            {{ $shipmentArrivedCount }}
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                <div class="card card-statistic-1">
                    <div class="card-icon bg-success">
                        <i class="fas fa-envelope"></i>
                    </div>
                    <div class="card-wrap">
                        <div class="card-header">
                            <h4>Messages</h4>
                        </div>
                        <div class="card-body">
                            {{ $contactMessagesCount }}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
@endsection
