<div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">Edit {{$order->order_id}} ({{$order->trade?->symbol}})</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body m-3">
               <form action="{{route('admin.order.edit')}}" method="post">
    @csrf
    <input type="hidden" value="{{$order->id}}" name="gixd" /> 
    <div class="row">
        <div class="mb-3 col-md-12">
            <label class="form-label" for="inputLeverage">Type</label>
            <input type="text" class="form-control" id="inputLeverage" placeholder="Type" readonly value="{{$order->type}}" />
        </div>
        
        <div class="mb-3 col-md-12">
            <label class="form-label" for="inputTAmount">Amount</label>
            <input type="text" class="form-control" id="inputTAmount" placeholder="Amount" name="amount" value="{{$order->volume}}" />
        </div>
        
        <div class="mb-3 col-md-12">
            <label class="form-label" for="inputEntryPrice">Entry Price</label>
            <input type="text" class="form-control" id="inputEntryPrice" placeholder="Entry Price" name="entry_price" value="{{$order->entry_price ?? ''}}" />
        </div>

        <div class="mb-3 col-md-12">
            <label class="form-label" for="inputLeverage">Leverage</label>
            <input type="text" class="form-control" id="inputLeverage" placeholder="Leverage" name="leverage" value="{{$order->leverage ?? ''}}" />
        </div>
        

        <div class="mb-3 col-md-12">
            <label class="form-label" for="inputStopLoss">Stop Loss</label>
            <input type="text" class="form-control" id="inputStopLoss" placeholder="Stop Loss" name="stop_loss" value="{{$order->sLoss ?? ''}}" />
        </div>

        <div class="mb-3 col-md-12">
            <label class="form-label" for="inputTakeProfit">Take Profit</label>
            <input type="text" class="form-control" id="inputTakeProfit" placeholder="Take Profit" name="take_profit" value="{{$order->tProfit ?? ''}}" />
        </div>

        <div class="mb-3 col-md-12">
            <label class="form-label" for="inputPayout">Payout</label>
            <input type="text" class="form-control" id="inputPayout" placeholder="Payout" name="payout" value="{{$order->payout ?? ''}}" />
        </div>
    </div>

    <div class="mb-3">
        <label class="form-label" for="inputTStatus">Status</label>
        <select class="form-control" name="status" id="inputTStatus" required>
            {!!get_order_edit_select($order->status)!!}
        </select>
    </div>
    
    <div class="mb-3">
        <label class="form-label" for="inputTStatus">Win Status</label>
        <select class="form-control" name="wstatus" id="inputTStatus" >
            <option value="" >none</option>
            <option value="won" {{get_selected($order->win_status , 'won')}} >won</option>
            <option  value="loss" {{get_selected($order->win_status , 'loss')}}>loss</option>
        </select>
    </div>
   
    <div class="d-flex justify-content-end">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> 
        <button type="submit" class="btn btn-primary">Save changes</button>
    </div>
</form>


            </div>
            
        </div>