sifatbaho
This commit is contained in:
40
resources/views/components/actions/attachment.blade.php
Executable file
40
resources/views/components/actions/attachment.blade.php
Executable file
@@ -0,0 +1,40 @@
|
||||
<!-- ATTACHMENTS start item -->
|
||||
@if ($action->type == App\Enums\TrackingActionTypeEnum::ATTACHMENTS->name)
|
||||
<div class="acitivity-item py-3 d-flex">
|
||||
@if ($params = json_decode("{$action->params}", true))
|
||||
<div class="flex-shrink-0">
|
||||
<img src="{{ URL::asset("{$params['user']['avatar']}") }}"
|
||||
alt="" class="avatar-xs rounded-circle acitivity-avatar"/>
|
||||
</div>
|
||||
<div class="flex-grow-1 ms-3">
|
||||
<h6 class="mb-1">
|
||||
{{ $params['user']['name'] }}
|
||||
<span class="badge bg-soft-success text-success align-middle">
|
||||
{{ \App\Enums\TrackingActionTypeEnum::ATTACHMENTS->name }}
|
||||
</span>
|
||||
</h6>
|
||||
<p class="text-muted mb-2">
|
||||
@lang('translation.'.$action->type)
|
||||
</p>
|
||||
<div class="row">
|
||||
<div class="col-xxl-4">
|
||||
<div class="row border border-dashed gx-2 p-2 mb-2">
|
||||
@foreach ($params['attachments'] as $attachedItem)
|
||||
<div class="col-4">
|
||||
<img src="{{ URL::asset("{$attachedItem}") }}"
|
||||
alt="" class="img-fluid rounded"/>
|
||||
</div>
|
||||
@endforeach
|
||||
<!--end col-->
|
||||
</div>
|
||||
<!--end row-->
|
||||
</div>
|
||||
</div>
|
||||
<small class="mb-0 text-muted">
|
||||
{{ $action->created_at }}
|
||||
</small>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<!-- ATTACHMENTS end item -->
|
||||
64
resources/views/components/actions/completed.blade.php
Executable file
64
resources/views/components/actions/completed.blade.php
Executable file
@@ -0,0 +1,64 @@
|
||||
<!-- COMPLETED start item -->
|
||||
@if ($action->type == App\Enums\TrackingActionTypeEnum::COMPLETED->name)
|
||||
<div class="acitivity-item py-3 d-flex">
|
||||
@if ($params = json_decode("{$action->params}", true))
|
||||
<div class="flex-shrink-0">
|
||||
<img src="{{ asset("{$params['user']['avatar']}") }}"
|
||||
alt="" class="avatar-xs rounded-circle acitivity-avatar"/>
|
||||
</div>
|
||||
<div class="flex-grow-1 ms-3">
|
||||
<h6 class="mb-1">
|
||||
{{ $params['user']['name'] }}
|
||||
<span class="badge bg-soft-success text-success align-middle">
|
||||
@lang('translation.'.$action->type)
|
||||
</span>
|
||||
</h6>
|
||||
<p class="text-muted mb-2">
|
||||
{{ __(\App\Enums\TrackingActionTypeEnum::COMPLETED->value, [$params['attachments'][0], $params['attachments'][1]]) }}
|
||||
</p>
|
||||
<div class="col-xxl-4 col-lg-6">
|
||||
<div class="border rounded border-dashed p-2">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="flex-shrink-0 me-3">
|
||||
<div class="avatar-sm">
|
||||
<div
|
||||
class="avatar-title bg-light text-secondary rounded fs-24">
|
||||
<i class="ri-folder-zip-line"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-grow-1 overflow-hidden">
|
||||
<h5 class="fs-13 mb-1">
|
||||
<span class="text-body text-truncate d-block">
|
||||
{{ $params['attachments'][3] }}
|
||||
</span>
|
||||
</h5>
|
||||
<div>
|
||||
<span class="text-body text-truncate d-block">
|
||||
{{ $params['attachments'][5] }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-shrink-0 ms-2">
|
||||
<div class="d-flex gap-1">
|
||||
<a href="{{ route('download', [$params['attachments'][2]]) }}"
|
||||
class="text-body text-truncate d-block btn btn-icon text-muted btn-sm fs-18">
|
||||
<i class="ri-download-2-line"></i>
|
||||
</a>
|
||||
<a href="{{ Storage::url($params['attachments'][4]) }}"
|
||||
class="text-body text-truncate d-block btn btn-icon text-muted btn-sm fs-18">
|
||||
<i class="ri-fullscreen-line"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<small class="mb-0 text-muted">
|
||||
{{ $action->created_at }}
|
||||
</small>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<!-- COMPLETED end item -->
|
||||
40
resources/views/components/actions/members_added.blade.php
Executable file
40
resources/views/components/actions/members_added.blade.php
Executable file
@@ -0,0 +1,40 @@
|
||||
<!-- MEMBERS_ADDED start item -->
|
||||
@if ($action->type == App\Enums\TrackingActionTypeEnum::MEMBERS_ADDED->name)
|
||||
<div class="acitivity-item py-3 d-flex">
|
||||
@if ($params = json_decode("{$action->params}", true))
|
||||
<div class="flex-shrink-0 avatar-xs acitivity-avatar">
|
||||
<div class="avatar-title bg-soft-success text-success rounded-circle">
|
||||
<img src="{{ URL::asset("{$params['user']['avatar']}") }}"
|
||||
alt="" class="avatar-xs rounded-circle acitivity-avatar"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-grow-1 ms-3">
|
||||
<h6 class="mb-1">
|
||||
{{ $params['user']['name'] }}
|
||||
<span class="badge bg-soft-secondary text-secondary align-middle">
|
||||
@lang('translation.'.$action->type)
|
||||
</span>
|
||||
</h6>
|
||||
<p class="text-muted mb-2">
|
||||
<i class="ri-file-text-line align-middle ms-2"></i>
|
||||
{{ __("{$action->msg}") }}
|
||||
</p>
|
||||
<div class="avatar-group mb-2">
|
||||
@if ($params = json_decode("{$action->params}", true))
|
||||
@foreach ($params['attachments'] as $key => $value)
|
||||
<a href="{{ route('user.show', [$value[0]]) }}"
|
||||
class="avatar-group-item" data-bs-toggle="tooltip"
|
||||
data-bs-placement="top" title="{{ $value[1] }}"
|
||||
data-bs-original-title="{{ $value[1] }}">
|
||||
<img src="{{ URL::asset("{$value[2]}") }}" alt=""
|
||||
class="rounded-circle avatar-xs"/>
|
||||
</a>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
<small class="mb-0 text-muted">{{ $action->created_at }}</small>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<!-- MEMBERS_ADDED end item -->
|
||||
26
resources/views/components/actions/order_created.blade.php
Executable file
26
resources/views/components/actions/order_created.blade.php
Executable file
@@ -0,0 +1,26 @@
|
||||
<!-- ORDER_CREATED start item -->
|
||||
@if ($action->type == App\Enums\TrackingActionTypeEnum::ORDER_CREATED->name)
|
||||
<div class="acitivity-item d-flex">
|
||||
@if ($params = json_decode("{$action->params}", true))
|
||||
<div class="flex-shrink-0">
|
||||
<img src="{{ URL::asset("{$params['user']['avatar']}") }}"
|
||||
alt="" class="avatar-xs rounded-circle acitivity-avatar"/>
|
||||
</div>
|
||||
<div class="flex-grow-1 ms-3">
|
||||
<h6 class="mb-1">
|
||||
{{ $params['user']['name'] }}
|
||||
<span class="badge bg-soft-primary text-primary align-middle">
|
||||
@lang('translation.'.$action->type)
|
||||
</span>
|
||||
</h6>
|
||||
<p class="text-muted mb-2">
|
||||
{{ __($action->msg, $params['attachments']) }}
|
||||
</p>
|
||||
<small class="mb-0 text-muted">
|
||||
{{ $action->created_at }}
|
||||
</small>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<!-- ORDER_CREATED end item -->
|
||||
37
resources/views/components/actions/order_updated.blade.php
Executable file
37
resources/views/components/actions/order_updated.blade.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<!-- START: ORDER_UPDATED -->
|
||||
@if ($action->type == App\Enums\TrackingActionTypeEnum::ORDER_UPDATED->name)
|
||||
@if ($params = json_decode("{$action->params}", true))
|
||||
<div class="acitivity-item py-3 d-flex">
|
||||
<div class="flex-shrink-0 avatar-xs acitivity-avatar">
|
||||
<div
|
||||
class="avatar-title bg-soft-success text-success rounded-circle">
|
||||
<img src="{{ URL::asset("{$params['user']['avatar']}") }}"
|
||||
alt=""
|
||||
class="avatar-xs rounded-circle acitivity-avatar"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-grow-1 ms-3">
|
||||
<h6 class="mb-1">
|
||||
{{ $params['user']['name'] }}
|
||||
<span
|
||||
class="badge bg-soft-secondary text-secondary align-middle">
|
||||
@lang('translation.'.$action->type)
|
||||
</span>
|
||||
</h6>
|
||||
<p class="text-muted mb-2">
|
||||
<i class="ri-file-text-line align-middle ms-2"></i>
|
||||
{{ __("{$action->msg}", [$params['user']['name']]) }}
|
||||
</p>
|
||||
<div class="avatar-group mb-2">
|
||||
<ul>
|
||||
@foreach ($params['attachments'] as $key => $value)
|
||||
<li> {{ $value }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<small class="mb-0 text-muted">{{ $action->created_at }}</small>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
<!-- END: ORDER_UPDATED -->
|
||||
32
resources/views/components/actions/rejected.blade.php
Executable file
32
resources/views/components/actions/rejected.blade.php
Executable file
@@ -0,0 +1,32 @@
|
||||
<!-- REJECTED start item -->
|
||||
@if ($action->type == App\Enums\TrackingActionTypeEnum::REJECTED->name)
|
||||
@if ($params = json_decode("{$action->params}", true))
|
||||
<div class="acitivity-item py-3 d-flex">
|
||||
<div class="flex-shrink-0 avatar-xs acitivity-avatar">
|
||||
<div
|
||||
class="avatar-title bg-soft-success text-success rounded-circle">
|
||||
<img src="{{ URL::asset("{$params['user']['avatar']}") }}"
|
||||
alt="user profile image"
|
||||
class="avatar-xs rounded-circle acitivity-avatar"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-grow-1 ms-3">
|
||||
<h6 class="mb-1">
|
||||
{{ $params['user']['name'] }}
|
||||
<span class="badge bg-soft-secondary text-secondary align-middle">
|
||||
@lang('translation.'.$action->type)
|
||||
</span>
|
||||
</h6>
|
||||
<p class="text-muted mb-2">
|
||||
<i class="ri-file-text-line align-middle ms-2"></i>
|
||||
{{ __("{$action->msg}") }}
|
||||
</p>
|
||||
<div class="avatar-group mb-2">
|
||||
<p> {{ $params['attachments'][0]. ' '.$params['attachments'][1] }} </p>
|
||||
</div>
|
||||
<small class="mb-0 text-muted">{{ $action->created_at }}</small>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
<!-- REJECTED end item -->
|
||||
3
resources/views/components/area.blade.php
Executable file
3
resources/views/components/area.blade.php
Executable file
@@ -0,0 +1,3 @@
|
||||
{{ __($title) }} :<span class="badge badge-soft-info text-uppercase">
|
||||
{{ $area }} m<sup>2</sup>
|
||||
</span>
|
||||
18
resources/views/components/breadcrumb.blade.php
Executable file
18
resources/views/components/breadcrumb.blade.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box d-sm-flex align-items-center justify-content-between">
|
||||
<h4 class="mb-sm-0 font-size-18">{{ $title }}</h4>
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">{{ $li_1 }}</a></li>
|
||||
@if(isset($title))
|
||||
<li class="breadcrumb-item active">{{ $title }}</li>
|
||||
@endif
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
1
resources/views/components/callable-phone.blade.php
Executable file
1
resources/views/components/callable-phone.blade.php
Executable file
@@ -0,0 +1 @@
|
||||
<a class="text-decoration-underline" href="tel:{{ $phone }}"> {{ $phone }}</a>
|
||||
11
resources/views/components/delete-btn.blade.php
Executable file
11
resources/views/components/delete-btn.blade.php
Executable file
@@ -0,0 +1,11 @@
|
||||
@if(in_array(Auth::user()->role,['admin',\App\Enums\RoleEnum::MANAGER->name]))
|
||||
<form method="POST" action="{{ $url }}">
|
||||
@csrf
|
||||
@method('delete')
|
||||
<button type="submit" onclick="return confirm('Are you sure?')" class="dropdown-item" data-bs-toggle="tooltip"
|
||||
data-bs-placement="top"
|
||||
title="@lang("translation.delete-information")">
|
||||
<i class="ri-delete-bin-fill align-bottom me-2 text-muted"></i>
|
||||
</button>
|
||||
</form>
|
||||
@endif
|
||||
121
resources/views/components/estate-order-breadcrumbs.blade.php
Executable file
121
resources/views/components/estate-order-breadcrumbs.blade.php
Executable file
@@ -0,0 +1,121 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="card mt-n4 mx-n4">
|
||||
<div class="bg-soft-warning">
|
||||
<div class="card-body pb-0 px-4">
|
||||
<div class="row mb-3">
|
||||
<div class="col-md">
|
||||
<div class="row align-items-center g-3">
|
||||
<div class="col-md-auto">
|
||||
<div class="avatar-md">
|
||||
<div class="avatar-title bg-white rounded-circle">
|
||||
<!-- 'assets/images/brands/slack.png' -->
|
||||
<img
|
||||
src="{{ URL::asset('storage/attachments/estate_'.$order->id.'/qr.png') }}"
|
||||
alt=""
|
||||
class="avatar-md">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md">
|
||||
<div>
|
||||
<h4 class="fw-bold">{{ $order->name_of_object }}</h4>
|
||||
<div class="hstack gap-3 flex-wrap">
|
||||
<div>
|
||||
<i class="ri-car-line align-bottom me-1"></i>
|
||||
{{ $order->number }}
|
||||
</div>
|
||||
<div class="vr"></div>
|
||||
<div>@lang('translation.created-date') : <span
|
||||
class="fw-medium">{{ $order->created_at }}</span>
|
||||
</div>
|
||||
<div class="vr"></div>
|
||||
<div>@lang('translation.updated-date') : <span
|
||||
class="fw-medium">{{ $order->updated_at }}</span>
|
||||
</div>
|
||||
<div class="vr"></div>
|
||||
<div class="badge rounded-pill bg-info fs-12">
|
||||
@lang(\App\Enums\OrderStatusEnum::getLabel($order->status))
|
||||
</div>
|
||||
<div class="badge rounded-pill bg-warning fs-12">
|
||||
<a class="fs-12 text-white"
|
||||
href="{{ route('estate.edit', ['id' => $order->id]) }}">
|
||||
@lang('translation.edit')
|
||||
</a>
|
||||
</div>
|
||||
<form action="{{ route('estate.clone', [$order->id]) }}" method="post"
|
||||
novalidate>
|
||||
@csrf
|
||||
@method('put')
|
||||
<input type="hidden" value="{{ $order->id }}" name="id">
|
||||
<button type="submit"
|
||||
class="fs-12 badge rounded-pill bg-primary text-white">
|
||||
@lang('translation.clone')
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-auto">
|
||||
<div class="hstack gap-1 flex-wrap">
|
||||
<button type="button" class="btn py-0 fs-16 favourite-btn active">
|
||||
<i class="ri-star-fill"></i>
|
||||
</button>
|
||||
<a target="_blank" data-bs-toggle="tooltip" data-bs-placement="top"
|
||||
title="@lang('translation.share-tg')"
|
||||
href="https://t.me/share/url?url={{ route('estate.show', [$order->id]) }}&text={{ $order->name_of_object }}"
|
||||
type="button" class="btn py-0 fs-16 text-body">
|
||||
<i class="ri-share-line"></i>
|
||||
</a>
|
||||
<a href="{{ route('qr.generate',[$order->id,\App\Enums\OrderTypeEnum::ESTATE->name]) }}"
|
||||
data-bs-toggle="tooltip" data-bs-placement="top"
|
||||
title="@lang('translation.re-generate-qr-code')"
|
||||
class="btn py-0 fs-16 text-body">
|
||||
<i class="ri-restart-line"></i>
|
||||
</a>
|
||||
<a href="{{ route('qr.show', base64_encode("{$order->id}:ESTATE")) }}"
|
||||
data-bs-toggle="tooltip" data-bs-placement="top"
|
||||
title="@lang('translation.show-qr-code')"
|
||||
class="btn py-0 fs-16 text-body">
|
||||
<i class="ri-qr-code-line"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="nav nav-tabs-custom border-bottom-0" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link @if ($active == 'index') active @endif fw-semibold"
|
||||
href="{{ route('estate.show', [$order->id]) }}" role="tab">
|
||||
@lang('translation.overview')
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link fw-semibold @if ($active == 'documents') active @endif"
|
||||
href="{{ route('estate.show-documents', [$order->id]) }}" role="tab">
|
||||
@lang('translation.documents')
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link fw-semibold @if ($active == 'activities') active @endif"
|
||||
href="{{ route('estate.show-activities', [$order->id]) }}" role="tab">
|
||||
@lang('translation.activities')
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link fw-semibold @if ($active == 'team') active @endif"
|
||||
href="{{ route('estate.show-team', [$order->id]) }}" role="tab">
|
||||
@lang('translation.team')
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- end card body -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end card -->
|
||||
</div>
|
||||
<!-- end col -->
|
||||
</div>
|
||||
|
||||
39
resources/views/components/home/auto-orders.blade.php
Executable file
39
resources/views/components/home/auto-orders.blade.php
Executable file
@@ -0,0 +1,39 @@
|
||||
<div class="col-xl-3 col-md-6">
|
||||
<!-- card -->
|
||||
<div class="card card-animate">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="flex-grow-1 overflow-hidden">
|
||||
<p class="text-uppercase fw-medium text-muted text-truncate mb-0">
|
||||
@lang('translation.auto')
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex-shrink-0">
|
||||
<h5 class="text-danger fs-14 mb-0">
|
||||
<i class="ri-arrow-right-down-line fs-13 align-middle"></i>
|
||||
-3.57 %
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex align-items-end justify-content-between mt-4">
|
||||
<div>
|
||||
<h4 class="fs-22 fw-semibold ff-secondary mb-4">
|
||||
<span class="counter-value"
|
||||
data-target="{{ $count }}">
|
||||
0
|
||||
</span>
|
||||
</h4>
|
||||
<a href="{{ route('auto.index') }}"
|
||||
class="text-decoration-underline">
|
||||
@lang('translation.view-all-orders')
|
||||
</a>
|
||||
</div>
|
||||
<div class="avatar-sm flex-shrink-0">
|
||||
<span class="avatar-title bg-soft-info rounded fs-3">
|
||||
<i class=" ri-car-line text-info"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- end card body -->
|
||||
</div><!-- end card -->
|
||||
</div><!-- end col -->
|
||||
34
resources/views/components/home/balance.blade.php
Executable file
34
resources/views/components/home/balance.blade.php
Executable file
@@ -0,0 +1,34 @@
|
||||
<div class="col-xl-3 col-md-6">
|
||||
<!-- card -->
|
||||
<div class="card card-animate">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="flex-grow-1 overflow-hidden">
|
||||
<p
|
||||
class="text-uppercase fw-medium text-muted text-truncate mb-0">
|
||||
@lang("translation.my-account")</p>
|
||||
</div>
|
||||
<div class="flex-shrink-0">
|
||||
<h5 class="text-muted fs-14 mb-0">
|
||||
+0.00 %
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex align-items-end justify-content-between mt-4">
|
||||
<div>
|
||||
<h4 class="fs-22 fw-semibold ff-secondary mb-4">$<span
|
||||
class="counter-value" data-target="{{ Auth()->user()->bonus }}">0</span>k
|
||||
</h4>
|
||||
<a href=""
|
||||
class="text-decoration-underline">@lang('translation.withdraw-money')</a>
|
||||
</div>
|
||||
<div class="avatar-sm flex-shrink-0">
|
||||
<span class="avatar-title bg-soft-primary rounded fs-3">
|
||||
<i class="bx bx-wallet text-primary"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- end card body -->
|
||||
</div><!-- end card -->
|
||||
</div><!-- end col -->
|
||||
</div> <!-- end row-->
|
||||
39
resources/views/components/home/estate-orders.blade.php
Executable file
39
resources/views/components/home/estate-orders.blade.php
Executable file
@@ -0,0 +1,39 @@
|
||||
<div class="col-xl-3 col-md-6">
|
||||
<!-- card -->
|
||||
<div class="card card-animate">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="flex-grow-1 overflow-hidden">
|
||||
<p class="text-uppercase fw-medium text-muted text-truncate mb-0">
|
||||
@lang('translation.estate')
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex-shrink-0">
|
||||
<h5 class="text-success fs-14 mb-0">
|
||||
<i class="ri-arrow-right-up-line fs-13 align-middle"></i>
|
||||
+29.08 %
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex align-items-end justify-content-between mt-4">
|
||||
<div>
|
||||
<h4 class="fs-22 fw-semibold ff-secondary mb-4">
|
||||
<span class="counter-value"
|
||||
data-target="{{ $count }}">
|
||||
0
|
||||
</span>
|
||||
</h4>
|
||||
<a href="{{ route('estate.index') }}"
|
||||
class="text-decoration-underline">
|
||||
@lang('translation.view-all-orders')
|
||||
</a>
|
||||
</div>
|
||||
<div class="avatar-sm flex-shrink-0">
|
||||
<span class="avatar-title bg-soft-warning rounded fs-3">
|
||||
<i class=" ri-community-line text-warning"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- end card body -->
|
||||
</div><!-- end card -->
|
||||
</div><!-- end col -->
|
||||
31
resources/views/components/home/evaluators.blade.php
Executable file
31
resources/views/components/home/evaluators.blade.php
Executable file
@@ -0,0 +1,31 @@
|
||||
<div class="row">
|
||||
<div class="col-xl-4">
|
||||
<div class="card card-height-100">
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h4 class="card-title mb-0 flex-grow-1">@lang('translation.conclusions-are-in-the-section-of-evaluators')</h4>
|
||||
<div class="flex-shrink-0">
|
||||
<div class="dropdown card-header-dropdown">
|
||||
<a class="text-reset dropdown-btn" href="#"
|
||||
data-bs-toggle="dropdown" aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
<span class="text-muted">Report<i
|
||||
class="mdi mdi-chevron-down ms-1"></i></span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-end">
|
||||
<a class="dropdown-item" href="#">Download Report</a>
|
||||
<a class="dropdown-item" href="#">Export</a>
|
||||
<a class="dropdown-item" href="#">Import</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- end card header -->
|
||||
|
||||
<div class="card-body">
|
||||
<div id="store-visits-source2"
|
||||
data-colors='["#405189", "#0ab39c", "#f7b84b", "#f06548", "#299cdb", "#299cdb"]'
|
||||
class="apex-charts" dir="ltr"
|
||||
data-labels='{{ $labels }}'
|
||||
data-values="{{ $values }}"></div>
|
||||
</div>
|
||||
</div> <!-- .card-->
|
||||
</div> <!-- .col-->
|
||||
55
resources/views/components/home/recent-orders.blade.php
Executable file
55
resources/views/components/home/recent-orders.blade.php
Executable file
@@ -0,0 +1,55 @@
|
||||
<div class="col-xl-8">
|
||||
<div class="card">
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h4 class="card-title mb-0 flex-grow-1">@lang('translation.recently-created-orders')</h4>
|
||||
<div class="flex-shrink-0">
|
||||
<button type="button" class="btn btn-soft-info btn-sm">
|
||||
<i class="ri-file-list-3-line align-middle"></i> Generate Report
|
||||
</button>
|
||||
</div>
|
||||
</div><!-- end card header -->
|
||||
<div class="card-body">
|
||||
<div class="table-responsive table-card">
|
||||
<table
|
||||
class="table table-borderless table-centered align-middle table-nowrap mb-0">
|
||||
<thead class="text-muted table-light">
|
||||
<tr>
|
||||
<th scope="col">@lang('translation.order-id')</th>
|
||||
<th scope="col">@lang('translation.customer')</th>
|
||||
<th scope="col">@lang('translation.car-mark')</th>
|
||||
<th scope="col">@lang('translation.conclusion-price')</th>
|
||||
<th scope="col">@lang('translation.status')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($orders as $order)
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ route('auto.show',[$order->id]) }}"
|
||||
class="fw-medium link-primary">
|
||||
{{ $order->number }}
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ $order->customer }}</td>
|
||||
<td>
|
||||
{{ $order->car_mark }}
|
||||
</td>
|
||||
<td>
|
||||
<span class="text-success">
|
||||
@component('components.price',['balance' => $order->cost]) @endcomponent
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge badge-soft-success">
|
||||
@lang(\App\Enums\OrderStatusEnum::getLabel($order->status))
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- end tr -->
|
||||
@endforeach
|
||||
</tbody><!-- end tbody -->
|
||||
</table><!-- end table -->
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- .card-->
|
||||
</div> <!-- .col-->
|
||||
37
resources/views/components/home/summary-price.blade.php
Executable file
37
resources/views/components/home/summary-price.blade.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<div class="col-xl-3 col-md-6">
|
||||
<!-- card -->
|
||||
<div class="card card-animate">
|
||||
<div class="card-body">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="flex-grow-1 overflow-hidden">
|
||||
<p class="text-uppercase fw-medium text-muted text-truncate mb-0">
|
||||
@lang('translation.total-earnings')
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex-shrink-0">
|
||||
<h5 class="text-success fs-14 mb-0">
|
||||
<i class="ri-arrow-right-up-line fs-13 align-middle"></i>
|
||||
+16.24 %
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex align-items-end justify-content-between mt-4">
|
||||
<div>
|
||||
<h4 class="fs-22 fw-semibold ff-secondary mb-4">$
|
||||
<span class="counter-value"
|
||||
data-target="{{ $summary }}">
|
||||
0
|
||||
</span>
|
||||
</h4>
|
||||
<a href=""
|
||||
class="text-decoration-underline">@lang('translation.view-net-earnings')</a>
|
||||
</div>
|
||||
<div class="avatar-sm flex-shrink-0">
|
||||
<span class="avatar-title bg-soft-success rounded fs-3">
|
||||
<i class="bx bx-dollar-circle text-success"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- end card body -->
|
||||
</div><!-- end card -->
|
||||
</div><!-- end col -->
|
||||
122
resources/views/components/order-breadcrumbs.blade.php
Executable file
122
resources/views/components/order-breadcrumbs.blade.php
Executable file
@@ -0,0 +1,122 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="card mt-n4 mx-n4">
|
||||
<div class="bg-soft-warning">
|
||||
<div class="card-body pb-0 px-4">
|
||||
<div class="row mb-3">
|
||||
<div class="col-md">
|
||||
<div class="row align-items-center g-3">
|
||||
<div class="col-md-auto">
|
||||
<div class="avatar-md">
|
||||
<div class="avatar-title bg-white rounded-circle">
|
||||
<!-- 'assets/images/brands/slack.png' -->
|
||||
<img
|
||||
src="{{ URL::asset('storage/attachments/auto_'.$order->id.'/qr.png') }}"
|
||||
alt=""
|
||||
class="avatar-md">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md">
|
||||
<div>
|
||||
@props(['order'])
|
||||
<h4 class="fw-bold">{{ $order->car_mark }}</h4>
|
||||
<div class="hstack gap-3 flex-wrap">
|
||||
<div>
|
||||
<i class="ri-car-line align-bottom me-1"></i>
|
||||
{{ $order->number }}
|
||||
</div>
|
||||
<div class="vr"></div>
|
||||
<div>@lang('translation.created-date') : <span
|
||||
class="fw-medium">{{ $order->created_at }}</span>
|
||||
</div>
|
||||
<div class="vr"></div>
|
||||
<div>@lang('translation.updated-date') : <span
|
||||
class="fw-medium">{{ $order->updated_at }}</span>
|
||||
</div>
|
||||
<div class="vr"></div>
|
||||
<div class="badge rounded-pill bg-info fs-12">
|
||||
@lang(\App\Enums\OrderStatusEnum::getLabel($order->status))
|
||||
</div>
|
||||
<div class="badge rounded-pill bg-warning fs-12">
|
||||
<a class="fs-12 text-white"
|
||||
href="{{ route('auto.edit', ['id' => $order->id]) }}">
|
||||
@lang('translation.edit')
|
||||
</a>
|
||||
</div>
|
||||
<form action="{{ route('auto.clone', [$order->id]) }}" method="post"
|
||||
novalidate>
|
||||
@csrf
|
||||
@method('put')
|
||||
<input type="hidden" value="{{ $order->id }}" name="id">
|
||||
<button type="submit"
|
||||
class="fs-12 badge rounded-pill bg-primary text-white">
|
||||
@lang('translation.clone')
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-auto">
|
||||
<div class="hstack gap-1 flex-wrap">
|
||||
<button type="button" class="btn py-0 fs-16 favourite-btn active">
|
||||
<i class="ri-star-fill"></i>
|
||||
</button>
|
||||
<a target="_blank" data-bs-toggle="tooltip" data-bs-placement="top"
|
||||
title="@lang('translation.share-tg')"
|
||||
href="https://t.me/share/url?url={{ route('auto.show', [$order->id]) }}&text={{ $order->car_mark }}"
|
||||
type="button" class="btn py-0 fs-16 text-body">
|
||||
<i class="ri-share-line"></i>
|
||||
</a>
|
||||
<a href="{{ route('qr.generate',[$order->id,\App\Enums\OrderTypeEnum::AUTO->name]) }}"
|
||||
data-bs-toggle="tooltip" data-bs-placement="top"
|
||||
title="@lang('translation.re-generate-qr-code')"
|
||||
class="btn py-0 fs-16 text-body">
|
||||
<i class="ri-restart-line"></i>
|
||||
</a>
|
||||
<a href="{{ route('qr.show', base64_encode("{$order->id}:AUTO")) }}"
|
||||
data-bs-toggle="tooltip" data-bs-placement="top"
|
||||
title="@lang('translation.show-qr-code')"
|
||||
class="btn py-0 fs-16 text-body">
|
||||
<i class="ri-qr-code-line"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="nav nav-tabs-custom border-bottom-0" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link @if ($active == 'index') active @endif fw-semibold"
|
||||
href="{{ route('auto.show', [$order->id]) }}" role="tab">
|
||||
@lang('translation.overview')
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link fw-semibold @if ($active == 'documents') active @endif"
|
||||
href="{{ route('auto.show-documents', [$order->id]) }}" role="tab">
|
||||
@lang('translation.documents')
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link fw-semibold @if ($active == 'activities') active @endif"
|
||||
href="{{ route('auto.show-activities', [$order->id]) }}" role="tab">
|
||||
@lang('translation.activities')
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link fw-semibold @if ($active == 'team') active @endif"
|
||||
href="{{ route('auto.show-team', [$order->id]) }}" role="tab">
|
||||
@lang('translation.team')
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- end card body -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end card -->
|
||||
</div>
|
||||
<!-- end col -->
|
||||
</div>
|
||||
|
||||
8
resources/views/components/page-size.blade.php
Executable file
8
resources/views/components/page-size.blade.php
Executable file
@@ -0,0 +1,8 @@
|
||||
<select data-choices data-choices-search-false onchange="this.form.submit()"
|
||||
data-choices-multiple-groups="false" class="form-control"
|
||||
name="size">
|
||||
<option value="10" @if($size==10) selected @endif> 10</option>
|
||||
<option value="30" @if($size==30) selected @endif> 30</option>
|
||||
<option value="50" @if($size==50) selected @endif> 50</option>
|
||||
<option value="100" @if($size==100) selected @endif> 100</option>
|
||||
</select>
|
||||
5
resources/views/components/price.blade.php
Executable file
5
resources/views/components/price.blade.php
Executable file
@@ -0,0 +1,5 @@
|
||||
<span class="badge badge-soft-info text-uppercase">
|
||||
@if ($balance < 0) <?=number_format($balance, 2)?> @lang('translation.sum')
|
||||
@else <?=number_format($balance, 2)?> @lang('translation.sum')
|
||||
@endif
|
||||
</span>
|
||||
37
resources/views/components/profile-header.blade.php
Executable file
37
resources/views/components/profile-header.blade.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<div class="d-flex">
|
||||
<!-- Nav tabs -->
|
||||
<ul class="nav nav-pills animation-nav profile-nav gap-2 gap-lg-3 flex-grow-1" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link fs-14 @if($active==="active") active @endif"
|
||||
href="{{ route('profile') }}">
|
||||
<i class="ri-airplay-fill d-inline-block d-md-none"></i> <span
|
||||
class="d-none d-md-inline-block">@lang('translation.overview')</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link fs-14 @if($active==="active") active @endif"
|
||||
href="{{ route('profile.show-activities') }}">
|
||||
<i class="ri-list-unordered d-inline-block d-md-none"></i> <span
|
||||
class="d-none d-md-inline-block">@lang('translation.actions')</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link fs-14 @if($active==="active") active @endif"
|
||||
href="{{ route('profile.show-projects') }}">
|
||||
<i class="ri-price-tag-line d-inline-block d-md-none"></i> <span
|
||||
class="d-none d-md-inline-block">@lang('translation.orders')</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link fs-14 @if($active==="active") active @endif"
|
||||
href="{{ route('profile.show-documents') }}">
|
||||
<i class="ri-folder-4-line d-inline-block d-md-none"></i> <span
|
||||
class="d-none d-md-inline-block">@lang('translation.documents')</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="flex-shrink-0">
|
||||
<a href="{{ route('profile.edit') }}" class="btn btn-success"><i
|
||||
class="ri-edit-box-line align-bottom"></i> Edit Profile</a>
|
||||
</div>
|
||||
</div>
|
||||
1
resources/views/components/purpose-dropdown.blade.php
Executable file
1
resources/views/components/purpose-dropdown.blade.php
Executable file
@@ -0,0 +1 @@
|
||||
<?php
|
||||
6
resources/views/components/tg-link.blade.php
Executable file
6
resources/views/components/tg-link.blade.php
Executable file
@@ -0,0 +1,6 @@
|
||||
<label for="cleave-phone" class="form-label">
|
||||
@lang('translation.telegram-phone')
|
||||
</label>
|
||||
<div class="badge fw-medium badge-soft-secondary">
|
||||
<a target="_blank" href="https://t.me/<?= str_replace('-', '', $phone)?>">t.me/{{ $phone }}</a>
|
||||
</div>
|
||||
Reference in New Issue
Block a user