fork download
  1. @extends('admin.layouts.app')
  2.  
  3. @section('panel')
  4. <div class="row">
  5. <div class="col-lg-12">
  6. <div class="card b-radius--10 ">
  7. <div class="card-body p-0">
  8. <div class="table-responsive--sm table-responsive">
  9. <table class="table table--light style--two">
  10. <thead>
  11. <tr>
  12. <th scope="col">@lang('Date')</th>
  13. <th scope="col">@lang('PTC Ad')</th>
  14. <th scope="col">@lang('User')</th>
  15. <th scope="col">@lang('Amount')</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. @forelse($ptcviews as $data)
  20. <tr>
  21. <td data-label="@lang('Date')">{{ \Carbon\Carbon::parse($data->view_date)->format('Y-m-d') }}</td>
  22. <td data-label="@lang('PTC Ad')">
  23. <a href="{{ $data->ptc ? route('admin.ptc.edit', $data->ptc->id) : '#' }}">
  24. {{ $data->ptc ? strLimit($data->ptc->title, 20) : __('N/A') }}
  25. </a>
  26. </td>
  27. <td data-label="@lang('User')">
  28. <a href="{{ $data->user ? route('admin.users.detail', $data->user->id) : '#' }}">
  29. {{ $data->user ? $data->user->username : __('Unknown User') }}
  30. </a>
  31. </td>
  32. <td class="font-weight-bold" data-label="Amount">{{ getAmount($data->amount) }} {{$general->cur_text}} </td>
  33. </tr>
  34. <tr>
  35. <td class="text-muted text-center" colspan="100%">{{ $emptyMessage }}</td>
  36. </tr>
  37. @endforelse
  38. </tbody>
  39. </table><!-- table end -->
  40. </div>
  41. </div>
  42. @if ($ptcviews->hasPages())
  43. <div class="card-footer py-4">
  44. {{ paginateLinks($ptcviews) }}
  45. </div>
  46. @endif
  47. </div><!-- card end -->
  48. </div>
  49. </div>
  50. @endsection
  51.  
  52. @push('breadcrumb-plugins')
  53. <form action="" method="GET" class="form-inline float-sm-end">
  54. <div class="input-group">
  55. <input type="text" name="search" class="form-control bg--white" placeholder="@lang('Search Username')" value="{{ request()->search }}">
  56. <button class="btn btn--primary input-group-text" type="submit"><i class="fa fa-search"></i></button>
  57. </div>
  58. </form>
  59. @endpush
  60.  
  61.  
Success #stdin #stdout 0.02s 25680KB
stdin
H
stdout
@extends('admin.layouts.app')

@section('panel')
    <div class="row">
        <div class="col-lg-12">
            <div class="card b-radius--10 ">
                <div class="card-body p-0">
                    <div class="table-responsive--sm table-responsive">
                        <table class="table table--light style--two">
                            <thead>
                            <tr>
                                <th scope="col">@lang('Date')</th>
                                <th scope="col">@lang('PTC Ad')</th>
                                <th scope="col">@lang('User')</th>
                                <th scope="col">@lang('Amount')</th>
                            </tr>
                            </thead>
                            <tbody>
                                @forelse($ptcviews as $data)
                                <tr>
                                    <td data-label="@lang('Date')">{{ \Carbon\Carbon::parse($data->view_date)->format('Y-m-d') }}</td>
                                    <td data-label="@lang('PTC Ad')"> 
                                        <a href="{{ $data->ptc ? route('admin.ptc.edit', $data->ptc->id) : '#' }}">
                                            {{ $data->ptc ? strLimit($data->ptc->title, 20) : __('N/A') }}
                                        </a>
                                    </td>
                                    <td data-label="@lang('User')">
                                        <a href="{{ $data->user ? route('admin.users.detail', $data->user->id) : '#' }}">
                                            {{ $data->user ? $data->user->username : __('Unknown User') }}
                                        </a>
                                    </td>
                                    <td class="font-weight-bold" data-label="Amount">{{ getAmount($data->amount) }} {{$general->cur_text}} </td>
                                </tr>
                                @empty
                                <tr>
                                    <td class="text-muted text-center" colspan="100%">{{ $emptyMessage }}</td>
                                </tr>
                                @endforelse
                            </tbody>
                        </table><!-- table end -->
                    </div>
                </div>
                @if ($ptcviews->hasPages())
                <div class="card-footer py-4">
                    {{ paginateLinks($ptcviews) }}
                </div>
                @endif
            </div><!-- card end -->
        </div>
    </div>
@endsection

@push('breadcrumb-plugins')
    <form action="" method="GET" class="form-inline float-sm-end">
        <div class="input-group">
            <input type="text" name="search" class="form-control bg--white" placeholder="@lang('Search Username')" value="{{ request()->search }}">
            <button class="btn btn--primary input-group-text" type="submit"><i class="fa fa-search"></i></button>
        </div>
    </form>
@endpush