<h5 class="d-inline m-0 pt-2 pb-0 px-0">Status: </h5>
<span data-toggle="tooltip" data-placement="top" title="Oder Status">
    @if ($order->status == 0)
        <i class="fas fa-clock"></i>&nbsp;<span class="badge badge-warning">Pending</span>
    @elseif ($order->status == 1)
        <i class="fas fa-truck"></i>&nbsp;<span class="badge badge-primary">Processing</span>
    @elseif ($order->status == 2)
        <i class="fas fa-times"></i>&nbsp;<span class="badge badge-danger">Canceled</span>
    @elseif ($order->status == 3)
        <i class="fas fa-check"></i>&nbsp;<span class="badge badge-success">Delivered</span>
    @elseif ($order->status == 4)
        <i class="fas fa-truck"></i>&nbsp;<span class="badge" style="background: #7db1b1;">Shipping</span>
    @elseif ($order->status == 5)
        <i class="fas fa-times"></i>&nbsp;<span class="badge badge-danger">Refund</span>
    @elseif ($order->status == 6)
        <i class="fas fa-times"></i>&nbsp;<span class="badge" style="background: #7db1b1;">Return Request By User</span>
    @elseif ($order->status == 7)
        <i class="fas fa-check"></i>&nbsp;<span class="badge" style="background: #7db1b1;">Return process accept by Owner</span>
    @elseif ($order->status == 8)
        <i class="fas fa-check"></i>&nbsp;<span class="badge" style="background: #7db1b1;">Returned</span>
    @elseif ($order->status == 9)
        <i class="fas fa-truck"></i>&nbsp;<span class="badge" style="background: #7db1b1;">Sended to Courier</span>
    @endif
</span>
<span data-toggle="tooltip" data-placement="top" title="Payment Status">
    @if($order->pay_staus == 1)
        <span class="badge badge-success mr-1">
            <i class="fas fa-check"></i> Paid
        </span>
    @elseif($order->pay_staus == 2)
        <span class="badge badge-warning mr-1">
            <i class="fas fa-exclamation-triangle"></i> Requested Refund
        </span>
    @elseif($order->pay_staus == 3)
        <span class="badge badge-success mr-1">
            <i class="fas fa-check"></i> Refunded
        </span>
    @else
        <span class="badge badge-danger mr-1">
            <i class="fas fa-times"></i> Unpaid
        </span>
    @endif
</span>
<span class="badge badge-info mr-1" data-toggle="tooltip" data-placement="top" title="{{ setting('CURRENCY_ICON') }}">{{ $order->total - $part }}</span>
<span class="badge badge-info mr-1" data-toggle="tooltip" data-placement="top" title="Payment Method: {{ $order->payment_method }}">{{ $order->payment_method }}</span>
@if($order->courier_status == 1)<span class="badge badge-success mr-1" title="Couriered">{{ json_decode($order->courier_data)->courier_service }}</span>@endif
<form action="{{ route('admin.order.status.change', $order->id) }}" method="POST" class="d-flex">
    @csrf
    <select name="status" id="status" class="form-control mt-2 w-auto">
        <option class="form-group" value="0" @if ($order->status == 0) selected @endif>Pending</option>
        <option class="form-group" value="1" @if ($order->status == 1) selected @endif>Processing</option>
        <option class="form-group" value="2" @if ($order->status == 2) selected @endif>Canceled</option>
        <option class="form-group" value="3" @if ($order->status == 3) selected @endif>Delivered</option>
        <option class="form-group" value="4" @if ($order->status == 4) selected @endif>Shipping</option>
        <option class="form-group" value="5" @if ($order->status == 5) selected @endif>Refund</option>
        <option class="form-group" value="6" @if ($order->status == 6) selected @endif>Return Request By User</option>
        <option class="form-group" value="7" @if ($order->status == 7) selected @endif>Return process accept by Owner</option>
        <option class="form-group" value="8" @if ($order->status == 8) selected @endif>Returned</option>
        {{-- <option class="form-group" value="9" @if ($order->status == 9) selected @endif>Sended to Courier</option> --}}
    </select>
    <button type="submit" class="btn btn-dark mt-2 ml-2">Change Status</button>
</form>
<form action="{{ route('admin.order.payment.status.change', $order->id) }}" method="POST" class="d-flex">
    @csrf
    {{-- <h2 class="d-inline m-0 pt-2 pb-0 px-0 @if ($order->pay_staus == 1) text-success @else text-danger @endif opacity-50"><i class="fas fa-wallet"></i></h2> --}}
    <select name="status" id="status" class="form-control mt-2 w-auto">
        <option class="form-group" value="0" @if ($order->pay_staus == 0) selected @endif>Unpaid</option>
        <option class="form-group" value="1" @if ($order->pay_staus == 1) selected @endif>Paid</option>
        <option class="form-group" value="2" @if ($order->pay_staus == 2) selected @endif>Requested Refund</option>
        <option class="form-group" value="3" @if ($order->pay_staus == 3) selected @endif>Refunded</option>
    </select>
    <button type="submit" class="btn btn-dark mt-2 ml-2">Change Status</button>
</form>
@push('js')
<script>
    $('[data-toggle="tooltip"]').tooltip();
</script>
@endpush