Viewing file: show.blade.php (9.39 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('layouts.app') @section('head') @include('layouts.partials.headersection',['title'=>'Customer']) @endsection @section('content') <section class="section"> <div class="section-body"> <div class="row mt-sm-4"> <div class="col-12 col-md-12 col-lg-5"> <div class="card profile-widget"> <div class="profile-widget-header"> <img alt="" src="{{ asset('uploads/'.$info->id.'/logo.png') }}" class="profile-widget-picture" height="80"> <div class="profile-widget-items"> <div class="profile-widget-item"> <div class="profile-widget-item-label">{{ __('Plan') }}</div> <div class="profile-widget-item-value">{{ $info->user_plan->plan_info->name ?? '' }}</div> </div>
<div class="profile-widget-item"> <div class="profile-widget-item-label">{{ __('Will Expired') }}</div> <div class="profile-widget-item-value">{{ $info->user_domain->will_expire }}</div> </div>
<div class="profile-widget-item"> <div class="profile-widget-item-label">{{ __('Status') }}</div> <div class="profile-widget-item-value"> @if($info->status==1) <span class="badge badge-success">{{ __('Active') }}</span> @elseif($info->status==0) <span class="badge badge-danger">{{ __('Trash') }}</span> @elseif($info->status==2) <span class="badge badge-warning">{{ __('Suspended') }}</span> @elseif($info->status==3) <span class="badge badge-warning">{{ __('Pending') }}</span> @endif</div> </div> </div> </div> <div class="profile-widget-description"> <div class="profile-widget-name">{{ $info->name }} <div class="text-muted d-inline font-weight-normal"><div class="slash"></div><a target="_blank" href="{{ $info->user_domain->full_domain ?? '' }}">{{ $info->user_domain->domain ?? '' }}</a></div></div> <ul class="list-group"> <li class="list-group-item">{{ __('Name :') }} {{ $info->name }}</li> <li class="list-group-item">{{ __('Email :') }} {{ $info->email }}</li> <li class="list-group-item">{{ __('Domain :') }} {{ $info->user_domain->domain ?? '' }} @if(!empty($info->user_domain)) @if($info->user_domain->status === 1) <span class="badge badge-success">{{ __('Active') }}</span> @elseif($info->user_domain->status === 0) <span class="badge badge-danger">{{ __('Trash') }}</span> @elseif($info->user_domain->status === 2) <span class="badge badge-warning">{{ __('Draft') }} @elseif($info->user_domain->status === 3) <span class="badge badge-warning">{{ __('Pending') }}</span> @endif @endif </li>
<li class="list-group-item">{{ __('Total Customers :') }} {{ number_format($info->customers_count) }}</li> <li class="list-group-item">{{ __('Total Orders :') }} {{ number_format($info->orders_count) }}</li> <li class="list-group-item">{{ __('Total Posts:') }} {{ number_format($info->term_count) }}</li> <li class="list-group-item">{{ __('Storage Used:') }} {{ folderSize('uploads/'.$info->id) }}MB / {{ $info->user_plan->plan_info->storage ?? 0 }} MB</li>
<li class="list-group-item">{{ __('Joining Date:') }} {{ $info->created_at->format('d-F-Y') }}</li>
</ul>
</div> </div> </div> <div class="col-12 col-md-12 col-lg-7"> <div class="card"> <form method="post" id="productform" novalidate="" action="{{ route('admin.email.store') }}"> @csrf <div class="card-header"> <h4>{{ __('Send Email') }} </h4> </div> <div class="card-body"> <div class="row"> <div class="form-group col-md-6 col-12"> <label>{{ __('Mail To') }}</label> <input type="email" name="email" class="form-control" value="{{ $info->email }}" required=""> </div> <div class="form-group col-md-6 col-12"> <label>{{ __('Subject') }}</label> <input type="text" class="form-control" required="" name="subject"> </div> </div> <div class="row"> <div class="form-group col-12"> <label>{{ __('Message') }}</label> <textarea class="form-control" required="" name="content"></textarea> </div> </div> <button class="btn btn-primary basicbtn" type="submit">{{ __('Send') }}</button> </div> </form> </div> </div> </div>
<div class="row"> <div class="col-12 col-md-12"> <div class="card"> <div class="card-header"> <h4>{{ __('Plan Purchase History') }}</h4> </div> <div class="card-body"> <div class="table-responsive"> <table class="table table-striped table-hover text-center table-borderless"> <thead> <tr>
<th>{{ __('Invoice No') }}</th> <th>{{ __('Plan Name') }}</th> <th>{{ __('Price') }}</th> <th>{{ __('Payment Method') }}</th> <th>{{ __('Payment Id') }}</th>
<th>{{ __('Created at') }}</th> <th>{{ __('View') }}</th> </tr> </thead> <tbody> @foreach($histories as $row) <tr> <td><a href="{{ route('admin.order.show',$row->id) }}">{{ $row->order_no }}</a></td> <td>{{ $row->plan_info->name }}</td> <td>{{ $row->amount }}</td> <td>{{ $row->category->name ?? '' }}</td> <td>{{ $row->trx ?? '' }}</td> <td>{{ $row->created_at->format('d-F-Y') }}</td> <td><a href="{{ route('admin.order.edit',$row->id) }}" class="btn btn-primary btn-sm"><i class="fa fa-eye"></i></a></td> </tr> @endforeach </tbody>
</table> {{ $histories->links('vendor.pagination.bootstrap-4') }} </div> </div> </div> </div> </div>
<div class="row"> <div class="col-12 col-md-12"> <div class="card"> <div class="card-header"> <h4>{{ __('Customers') }}</h4> </div> <div class="card-body"> <form action="{{ route('admin.customers.destroys') }}" class="basicform" method="post"> @csrf <div class="table-responsive"> <table class="table table-striped table-hover text-center table-borderless"> <thead> <tr>
<th>#</th> <th>{{ __('Name') }}</th> <th>{{ __('Email') }}</th> <th>{{ __('Orders') }}</th> <th>{{ __('Created at') }}</th> </tr> </thead> <tbody> @foreach($customers as $row) <tr> <td><input type="checkbox" name="ids[]" value="{{ $row->id }}"></td> <td>{{ $row->name }}</td> <td>{{ $row->email }}</td> <td>{{ $row->orders_count }}</td> <td>{{ $row->created_at->format('d-F-Y') }}</td> </tr> @endforeach </tbody>
</table> {{ $customers->links('vendor.pagination.bootstrap-4') }} </div> <div class="float-left mb-1"> <div class="input-group"> <select class="form-control selectric" name="type"> <option value="" >{{ __('Select Action') }}</option> <option value="user_delete" >{{ __('Delete Permanently') }}</option> </select> <div class="input-group-append"> <button class="btn btn-primary basicbtn" type="submit">{{ __('Submit') }}</button> </div> </div>
</div> </form> </div> </div> </div> </div>
<div class="row"> <div class="col-12 col-md-12"> <div class="card"> <div class="card-header"> <h4>{{ __('Products And Pages') }}</h4> </div> <div class="card-body"> <form method="post" action="{{ route('admin.customers.destroys') }}" class="basicform"> @csrf <div class="table-responsive"> <table class="table table-striped table-hover text-center table-borderless"> <thead> <tr>
<th>#</th> <th>{{ __('Title') }}</th> <th>{{ __('Type') }}</th> <th>{{ __('Created at') }}</th> </tr> </thead> <tbody> @foreach($posts as $row) <tr> <td><input type="checkbox" name="ids[]" value="{{ $row->id }}"></td> <td>{{ $row->title }}</td> <td>{{ $row->type }}</td> <td>{{ $row->created_at->format('d-F-Y') }}</td> </tr> @endforeach </tbody>
</table> {{ $posts->links('vendor.pagination.bootstrap-4') }} </div> <div class="float-left mb-1"> <div class="input-group"> <select class="form-control selectric" name="type"> <option value="" >{{ __('Select Action') }}</option> <option value="term_delete" >{{ __('Delete Permanently') }}</option> </select> <div class="input-group-append"> <button class="btn btn-primary basicbtn" type="submit">{{ __('Submit') }}</button> </div> </div>
</div> </form> </div> </div> </div> </div>
</div>
</section> @endsection @push('js') <script type="text/javascript" src="{{ asset('assets/js/ckeditor/ckeditor.js') }}"></script> <script type="text/javascript" src="{{ asset('assets/js/form.js?v=1.0') }}"></script> @endpush
|