|
|
@ -10,68 +10,211 @@
|
|
|
|
{{__("Dear customer, Please complete your information")}}
|
|
|
|
{{__("Dear customer, Please complete your information")}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
@else
|
|
|
|
<div class="alert alert-info">
|
|
|
|
{{-- <div class="alert alert-info">--}}
|
|
|
|
{{__("Hello")}}, {{Auth::guard('customer')->user()->name}}
|
|
|
|
{{-- {{__("Hello")}}, {{Auth::guard('customer')->user()->name}}--}}
|
|
|
|
</div>
|
|
|
|
{{-- </div>--}}
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
|
|
@if (\App\Helpers\cardCount() > 0)
|
|
|
|
|
|
|
|
<div class="alert alert-success overflow-hidden">
|
|
|
|
|
|
|
|
{{__("You have got :count products in your basket, Could you complete your purchase?",['count'=>\App\Helpers\cardCount()])}}
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="{{route('card.show')}}" class="btn btn-success w-50 d-block m-auto mt-2">
|
|
|
|
|
|
|
|
{{__("Complete your purchase")}}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@include('starter-kit::component.err')
|
|
|
|
@include('starter-kit::component.err')
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-2 col-md-3">
|
|
|
|
<div class="col-lg-3 col-md-4 mb-5">
|
|
|
|
<div class="position-sticky" style="top:100px;">
|
|
|
|
<div class="position-sticky" style="top:100px;box-shadow: 0 0 4px #00000044;">
|
|
|
|
<ul class="list-group" id="profile-tab">
|
|
|
|
<div class="text-center">
|
|
|
|
<li class="list-group-item active" data-id="#profile">
|
|
|
|
<div class="py-2">
|
|
|
|
|
|
|
|
<img src="https://www.gravatar.com/avatar/{{Auth::guard('customer')->user()->email}}?s=64" alt="profile" class="rounded-circle">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5>
|
|
|
|
|
|
|
|
{{Auth::guard('customer')->user()->name}}
|
|
|
|
|
|
|
|
</h5>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ul id="profile-tab">
|
|
|
|
|
|
|
|
<li class="active" data-id="#dashboard">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<i class="fa fa-home"></i>
|
|
|
|
|
|
|
|
{{__("Dashboard")}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="" data-id="#profile">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<i class="fa fa-user-cog"></i>
|
|
|
|
{{__("Profile")}}
|
|
|
|
{{__("Profile")}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item" data-id="#invoices">
|
|
|
|
<li data-id="#invoices">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<i class="fa fa-credit-card"></i>
|
|
|
|
{{__("Your invoices")}}
|
|
|
|
{{__("Your invoices")}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li data-id="#address">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<i class="fa fa-map-pin"></i>
|
|
|
|
|
|
|
|
{{__("Addresses")}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item" data-id="#tickets">
|
|
|
|
<li data-id="#tickets">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<i class="fa fa-envelopes-bulk"></i>
|
|
|
|
{{__("Tickets")}}
|
|
|
|
{{__("Tickets")}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item" data-id="#new">
|
|
|
|
<li data-id="#new">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<i class="fa fa-envelope-open"></i>
|
|
|
|
{{__("Send new ticket")}}
|
|
|
|
{{__("Send new ticket")}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
@if(!(auth('customer')->user()->colleague??null))
|
|
|
|
<li data-id="#crt">
|
|
|
|
<li class="list-group-item" data-id="#req">
|
|
|
|
<span>
|
|
|
|
{{__("Application request")}}
|
|
|
|
<i class="fa fa-coins"></i>
|
|
|
|
</li>
|
|
|
|
مدیریت کیف پول
|
|
|
|
@endif
|
|
|
|
</span>
|
|
|
|
<li class="list-group-item" data-id="#crt">
|
|
|
|
|
|
|
|
{{__("Credit")}}
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item" data-id="#favs">
|
|
|
|
<li data-id="#favs">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<i class="fa fa-heart"></i>
|
|
|
|
{{__("Favorites")}}
|
|
|
|
{{__("Favorites")}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item" data-id="#address">
|
|
|
|
@if(!(auth('customer')->user()->colleague??null))
|
|
|
|
{{__("Addresses")}}
|
|
|
|
<li data-id="#req">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<i class="fa fa-user-check"></i>
|
|
|
|
|
|
|
|
{{__("Application request")}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item">
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<a href="{{route('logout')}}">
|
|
|
|
<a href="{{route('logout')}}">
|
|
|
|
|
|
|
|
<i class="fa fa-user-lock"></i>
|
|
|
|
{{__("Logout")}}
|
|
|
|
{{__("Logout")}}
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-10 col-md-9">
|
|
|
|
<div class="col-lg-9 col-md-8">
|
|
|
|
<div id="profile" class="active profile-tab">
|
|
|
|
<div id="dashboard" class="active profile-tab">
|
|
|
|
|
|
|
|
<div class="container my-3">
|
|
|
|
|
|
|
|
<div class="gird4">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<a>
|
|
|
|
|
|
|
|
<i class="fa fa-location-pin-lock"></i>
|
|
|
|
|
|
|
|
<h1>
|
|
|
|
|
|
|
|
{{auth('customer')->user()->addresses()->count()+1}}
|
|
|
|
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<h5>
|
|
|
|
|
|
|
|
آدرس ها
|
|
|
|
|
|
|
|
</h5>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<i class="fa fa-headset"></i>
|
|
|
|
|
|
|
|
<h1>
|
|
|
|
|
|
|
|
{{auth('customer')->user()->tickets()->count()}}
|
|
|
|
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<h5>
|
|
|
|
|
|
|
|
پشتیبانی
|
|
|
|
|
|
|
|
</h5>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<i class="fa fa-bag-shopping"></i>
|
|
|
|
|
|
|
|
<h1>
|
|
|
|
|
|
|
|
{{auth('customer')->user()->invoices()->count()}}
|
|
|
|
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<h5>
|
|
|
|
|
|
|
|
سفارشها
|
|
|
|
|
|
|
|
</h5>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<i class="fa fa-wallet"></i>
|
|
|
|
|
|
|
|
<h1>
|
|
|
|
|
|
|
|
{{number_format(auth('customer')->user()->credit)}}
|
|
|
|
|
|
|
|
<small style="font-size: 20px">
|
|
|
|
|
|
|
|
{{config('app.currency_type')}}
|
|
|
|
|
|
|
|
</small>
|
|
|
|
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h5>
|
|
|
|
|
|
|
|
موجودی کیف پول
|
|
|
|
|
|
|
|
</h5>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if (\App\Helpers\cardCount() > 0)
|
|
|
|
|
|
|
|
<div class="alert alert-success overflow-hidden w-100">
|
|
|
|
|
|
|
|
{{__("You have got :count products in your basket, Could you complete your purchase?",['count'=>\App\Helpers\cardCount()])}}
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<a href="{{route('card.show')}}" class="btn btn-success w-50 d-block m-auto mt-2">
|
|
|
|
|
|
|
|
{{__("Complete your purchase")}}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="alert border-1 border-secondary" style="min-height: 14rem">
|
|
|
|
|
|
|
|
<h5>
|
|
|
|
|
|
|
|
آخرین سفارش ها
|
|
|
|
|
|
|
|
</h5>
|
|
|
|
|
|
|
|
@if(auth('customer')->user()->invoices()->count() > 0)
|
|
|
|
|
|
|
|
<table class="table table-striped w-100 text-center " >
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
شماره
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
مبلغ
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
وضعیت
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
زمان
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
@foreach(auth('customer')->user()->invoices()->limit(5)->get() as $in )
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
{{$in->id}}
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
{{number_format($in->total_price)}}
|
|
|
|
|
|
|
|
{{config('app.currency_type')}}
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
{{__($in->status)}}
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
{{$in->created_at->diffForHumans()}}
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
@else
|
|
|
|
|
|
|
|
<div class="alert alert-secondary">
|
|
|
|
|
|
|
|
سفارشی ثبت نشده است
|
|
|
|
|
|
|
|
<a href="{{route('welcome')}}" class="btn btn-success w-25 d-block m-auto mt-2">
|
|
|
|
|
|
|
|
رفتن به فروشگاه
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="profile" class="profile-tab">
|
|
|
|
<form class="p-3" method="post" action="{{route('profile')}}">
|
|
|
|
<form class="p-3" method="post" action="{{route('profile')}}">
|
|
|
|
@csrf
|
|
|
|
@csrf
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6 mt-3">
|
|
|
|
<div class="col-md-6 mt-3">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="name">
|
|
|
|
<label for="name">
|
|
|
|
{{__('Name')}}
|
|
|
|
نام و نام خانوادگی
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<input name="name" type="text"
|
|
|
|
<input name="name" type="text"
|
|
|
|
class="form-control @error('name') is-invalid @enderror"
|
|
|
|
class="form-control @error('name') is-invalid @enderror"
|
|
|
@ -104,7 +247,7 @@
|
|
|
|
<div class="col-md-4 mt-3">
|
|
|
|
<div class="col-md-4 mt-3">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="mobile">
|
|
|
|
<label for="mobile">
|
|
|
|
{{__('Mobile')}}
|
|
|
|
موبایل
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<input name="mobile" readonly type="text"
|
|
|
|
<input name="mobile" readonly type="text"
|
|
|
|
class="form-control @error('mobile') is-invalid @enderror"
|
|
|
|
class="form-control @error('mobile') is-invalid @enderror"
|
|
|
@ -116,7 +259,7 @@
|
|
|
|
<div class="col-md-4 mt-3">
|
|
|
|
<div class="col-md-4 mt-3">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="description">
|
|
|
|
<label for="description">
|
|
|
|
{{__('Description')}}/{{__("Page name")}}/{{__("Store")}}
|
|
|
|
{{__("Page name")}}/{{__("Store")}}
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<input name="description" type="text"
|
|
|
|
<input name="description" type="text"
|
|
|
|
class="form-control @error('description') is-invalid @enderror"
|
|
|
|
class="form-control @error('description') is-invalid @enderror"
|
|
|
@ -149,7 +292,7 @@
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="state"
|
|
|
|
<label for="state"
|
|
|
|
class="col-md-4 col-form-label text-md-right">{{ __('State') }}</label>
|
|
|
|
class=" mt-3">{{ __('State') }}</label>
|
|
|
|
<select id="state" data-val="{{old('state',$customer->state??null)}}"
|
|
|
|
<select id="state" data-val="{{old('state',$customer->state??null)}}"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
class="form-control @error('state') is-invalid @enderror" name="state"
|
|
|
|
class="form-control @error('state') is-invalid @enderror" name="state"
|
|
|
@ -160,7 +303,7 @@
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="city"
|
|
|
|
<label for="city"
|
|
|
|
class="col-md-4 col-form-label text-md-right">{{ __('City') }}</label>
|
|
|
|
class=" mt-3">{{ __('City') }}</label>
|
|
|
|
<select id="city" data-val="{{old('city',$customer->city??null)}}" type="text"
|
|
|
|
<select id="city" data-val="{{old('city',$customer->city??null)}}" type="text"
|
|
|
|
class="form-control @error('city') is-invalid @enderror" name="city"
|
|
|
|
class="form-control @error('city') is-invalid @enderror" name="city"
|
|
|
|
required>
|
|
|
|
required>
|
|
|
@ -198,7 +341,7 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
|
@foreach(\App\Models\Invoice::whereCustomerId(auth('customer')->id())->with('successPayments')->get() as $invoice)
|
|
|
|
@foreach(\App\Models\Invoice::whereCustomerId(auth('customer')->id())->orderBy('id','desc')->with('successPayments')->get() as $invoice)
|
|
|
|
<tr class="{{$invoice->status===\App\Models\Invoice::COMPLETED?'text-success':''}}">
|
|
|
|
<tr class="{{$invoice->status===\App\Models\Invoice::COMPLETED?'text-success':''}}">
|
|
|
|
<td>{{$loop->index+1}}</td>
|
|
|
|
<td>{{$loop->index+1}}</td>
|
|
|
|
<td style="width: 45%">
|
|
|
|
<td style="width: 45%">
|
|
|
@ -381,11 +524,20 @@
|
|
|
|
<div id="favs" class="profile-tab">
|
|
|
|
<div id="favs" class="profile-tab">
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(auth('customer')->user()->products()->count() == 0)
|
|
|
|
|
|
|
|
<div class="alert alert-secondary">
|
|
|
|
|
|
|
|
محصولی به علاقهمندی هایتان اضافه نشده است.
|
|
|
|
|
|
|
|
<a href="{{route('welcome')}}" class="btn btn-success w-25 d-block m-auto mt-2">
|
|
|
|
|
|
|
|
رفتن به فروشگاه
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@else
|
|
|
|
@foreach(auth('customer')->user()->products as $p)
|
|
|
|
@foreach(auth('customer')->user()->products as $p)
|
|
|
|
<div class="col-md-3">
|
|
|
|
<div class="col-md-3">
|
|
|
|
@include('website.component.pro',['p' => $p])
|
|
|
|
@include('website.component.pro',['p' => $p])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="address" class="profile-tab">
|
|
|
|
<div id="address" class="profile-tab">
|
|
|
@ -400,7 +552,8 @@
|
|
|
|
@foreach(auth('customer')->user()->addresses as $ad)
|
|
|
|
@foreach(auth('customer')->user()->addresses as $ad)
|
|
|
|
<li class="list-group-item">
|
|
|
|
<li class="list-group-item">
|
|
|
|
{{$ad->address}}
|
|
|
|
{{$ad->address}}
|
|
|
|
<a href="{{route('customer.remaddress',$ad->id)}}" class="btn btn-danger delete-confirm float-end">
|
|
|
|
<a href="{{route('customer.remaddress',$ad->id)}}"
|
|
|
|
|
|
|
|
class="btn btn-danger delete-confirm float-end">
|
|
|
|
<span class="fa fa-times"></span>
|
|
|
|
<span class="fa fa-times"></span>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
@ -420,7 +573,8 @@
|
|
|
|
class="col-md-4 col-form-label text-md-right">{{ __('State') }}</label>
|
|
|
|
class="col-md-4 col-form-label text-md-right">{{ __('State') }}</label>
|
|
|
|
<select id="state_" data-val="{{old('state',$customer->state??null)}}"
|
|
|
|
<select id="state_" data-val="{{old('state',$customer->state??null)}}"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
class="form-control @error('state') is-invalid @enderror" name="state"
|
|
|
|
class="form-control @error('state') is-invalid @enderror"
|
|
|
|
|
|
|
|
name="state"
|
|
|
|
required>
|
|
|
|
required>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -429,7 +583,8 @@
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="city_"
|
|
|
|
<label for="city_"
|
|
|
|
class="col-md-4 col-form-label text-md-right">{{ __('City') }}</label>
|
|
|
|
class="col-md-4 col-form-label text-md-right">{{ __('City') }}</label>
|
|
|
|
<select id="city_" data-val="{{old('city',$customer->city??null)}}" type="text"
|
|
|
|
<select id="city_" data-val="{{old('city',$customer->city??null)}}"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
class="form-control @error('city') is-invalid @enderror" name="city"
|
|
|
|
class="form-control @error('city') is-invalid @enderror" name="city"
|
|
|
|
required>
|
|
|
|
required>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|