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 -->
|
||||
Reference in New Issue
Block a user