• {{ __('Admin') }}
  • {{ __('Westlinks Support') }}
  • @if(\Auth::user()->is_darkmode == 0) @else @endif

    Westlinks Support

    This product is fully supported by Westlinks Online, LLC.

    @if(\Auth::user()->role->name == 'su' || \Auth::user()->role->name == 'Manager')

    Support Channels

    @endif

    Open Tickets

    @if($tickets == "")
    Zendesk Not Configured
    @else @foreach($tickets->results as $ticket) @php $subdomain = env('WL_ZENDESKAPISUBDOMAIN'); $username = env('WL_ZENDESKAPIUSERNAME'); $token = env('WL_ZENDESKAPITOKEN'); $client = new \Zendesk\API\HttpClient($subdomain); $client->setAuth('basic', ['username' => $username, 'token' => $token]); $ticket1 = $client->tickets()->sideload(['users'])->find($ticket->id); @endphp
    {{date('d M h:i A', strtotime($ticket->created_at))}} {{$ticket->subject}} ({{$ticket->status}})
    @endforeach @endif

    Create a Ticket

    Create a ticket and we will be notified within 5 minutes during normal business hours.

    {!! Form::open(['url' => '/admin/westlinks-support/create-ticket']) !!} {{ Form::hidden('form_id', 1)}} @if(isset(Auth::user()->id)) {{ Form::hidden('user_id', Auth::user()->id)}} @else {{ Form::hidden('user_id', 0)}} @endif {{ Form::hidden('application_id', env('APPLICATION_ID'))}}
    {{ Form::label('email', '*Your Email:', ['class'=>'control-label dark:bg-slate-800 dark:text-slate-300'])}} {{ Form::email('email', Auth::user()->email, ['class' => 'form-control bg-slate-200 dark:bg-slate-800 dark:text-slate-300 border-none', 'readonly' => true])}}
    @php if(isset($_GET['order_id'])) { $subject = "Question about order ".$_GET['order_id']; $body = "Please explain your request in detail. You may also call or book a quick zoom call above."; } elseif(isset($_GET['edit_transaction']) && $_GET['edit_transaction'] == 1 && isset($_GET['transaction_id'])) { $subject = "Special Request: Edit transaction ".$_GET['transaction_id']; $body = "Please explain your request in detail. You may also call or book a quick zoom call above."; } else { $subject = old('subject'); $body = old('body'); } @endphp
    {{ Form::label('subject', '*Subject: ', ['class'=>'control-label dark:bg-slate-800 dark:text-slate-300'])}} {{-- {{ Form::text('subject', old('subject'), ['required', 'class' => 'form-control bg-slate-200 dark:bg-slate-800 dark:text-slate-300 border-none']) }} --}} {{ Form::text('subject', $subject, ['required', 'class' => 'form-control bg-slate-200 dark:bg-slate-800 dark:text-slate-300 border-none']) }}
    {{ Form::label('body', '*Message: ', ['class'=>'control-label dark:bg-slate-800 dark:text-slate-300'])}} {{ Form::textarea('body',$body, ['required', 'class' => 'form-control bg-slate-200 dark:bg-slate-800 dark:text-slate-300 border-none', 'rows'=>5]) }}
    {!! Form::close() !!}