@extends('components.app')
@section('styles')
@endsection
@section('title')
    View Sms Api
@endsection

@section('content')

<!-- Begin Page Content -->
<div class="container">
    
    <!-- Page Heading -->
    {{-- <div class="d-sm-flex align-items-center justify-content-between mb-4">
        <h1 class="h3 mb-0 text-gray-800">Add User</h1>
        
    </div> --}}
    <div class="d-flex align-items-center p-3 my-3 text-white bg-primary rounded shadow-sm">
        <svg class="bd-placeholder-img flex-shrink-0 me-2 rounded" width="32" height="32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: 32x32" preserveAspectRatio="xMidYMid slice" focusable="false"><title>Placeholder</title><rect width="100%" height="100%" fill="var(--white)"></rect><text x="50%" y="50%" fill="var(--white)" dy=".3em">32x32</text></svg>

        <div class="ml-2">
          <h1 class="h6 mb-0 text-white lh-1">View Sms Api</h1>
          <small><a class="text-white" href="{{url('admin/dashboard')}}">dashboard</a> > <a class="text-white" href="{{url($prefix.'manage')}}">manage sms api</a> > view sms api</small>
        </div>
    </div>
    <!-- Content Row -->
    <div class="row">
            <div class="col-sm-12">
                <div class="card mb-4 shadow">
                    <div class="card-body">
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label class="small text-uppercase">Name</label>
                                        <input type="text" class="form-control" value="{{$data->name}}" readonly>
                                    </div>
                                    <div class="form-group">
                                        <label class="small text-uppercase">Url</label>
                                        <input type="text" class="form-control" value="{{$data->url}}" readonly>
                                    </div>
                                    <div class="form-group">
                                        <label class="small text-uppercase">Method</label>
                                        <input type="text" class="form-control" value="{{$data->method}}" readonly>
                                        
                                    </div>
                                    <div class="form-group">
                                        <label class="small text-uppercase">Authentication</label>
                                        <input type="text" class="form-control" value="@if($data->authentication == '1') TRUE @else FALSE @endif" readonly>
                                    </div>
                                    <div class="form-group auth">
                                        <label class="small text-uppercase">Auth Username</label>
                                        <input type="text" class="form-control" value="{{$data->auth_username}}" readonly>
                                    </div>
                                    <div class="form-group auth">
                                        <label class="small text-uppercase">Auth Password</label>
                                        <input type="text" class="form-control" value="{{$data->auth_password}}" readonly>
                                    </div>
                                    <div class="form-group">
                                        <label class="small text-uppercase">Json Encoded</label>
                                        <input type="text" class="form-control" value="@if($data->json_encoded == '1') TRUE @else FALSE @endif" readonly>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <label class="small text-uppercase">Parameters and Values</label>
                                    <p class="small text-dark">
                                        
                                            {{json_encode($data->parameters)}}
                                        
                                    </p>
                                    
                                       
                                    
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="text-right mt-4">
                                        <a class="btn btn-secondary text-uppercase font-weight-bold rounded pl-4 pr-4" href="{{url($prefix.'manage')}}">Back</a>
                                        <a class="btn btn-primary text-uppercase font-weight-bold rounded pl-4 pr-4" href="{{url($prefix.'edit?id='.$data->id)}}">edit</a>
                                    </div>   
                                </div>
                            </div>
                        </form>
                    </div> 
                </div>
            </div>
        </div>
        <small class="d-block text-end mt-3">
          
        </small>
      </div>
</div>

@endsection


