2022-09-13 14:01:10 +00:00
|
|
|
title = "profile"
|
|
|
|
|
url = "/profile"
|
|
|
|
|
layout = "default"
|
|
|
|
|
is_hidden = 0
|
|
|
|
|
|
|
|
|
|
[session]
|
|
|
|
|
security = "user"
|
|
|
|
|
redirect = "home"
|
|
|
|
|
==
|
2024-03-13 12:32:27 +00:00
|
|
|
<?php
|
|
|
|
|
function onStart(){
|
|
|
|
|
|
|
|
|
|
$this["notifs"] = Tps\Shops\Models\Notification::get();
|
|
|
|
|
//dd($this["notifs"]);
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
==
|
2022-09-13 14:01:10 +00:00
|
|
|
{% component 'session' %}
|
|
|
|
|
|
|
|
|
|
<!-- Breadcrumb ======================= -->
|
|
|
|
|
<section class="crumb">
|
|
|
|
|
<div class="auto_container">
|
|
|
|
|
<div class="crumb_wrap">
|
|
|
|
|
<div class="crumb_row">
|
2022-09-15 19:49:54 +00:00
|
|
|
<a href="{{'home'|page }}" class="crumb_title">
|
2022-09-13 14:01:10 +00:00
|
|
|
<span>
|
|
|
|
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
|
|
|
<path
|
|
|
|
|
d="M1.25 12.88V6.91459C1.25 6.33752 1.51642 5.79278 1.97193 5.4385L6.85193 1.64294C7.52721 1.11773 8.47279 1.11773 9.14807 1.64294L14.0281 5.4385C14.4836 5.79278 14.75 6.33752 14.75 6.91459V12.88C14.75 13.9128 13.9128 14.75 12.88 14.75H10.75C10.4739 14.75 10.25 14.5261 10.25 14.25V11.6487C10.25 11.3855 10.207 11.1193 10.0677 10.896C9.88545 10.6039 9.64228 10.3523 9.35303 10.1595C8.95253 9.89251 8.48167 9.75 8 9.75C7.51833 9.75 7.04747 9.89251 6.64697 10.1595C6.35772 10.3523 6.11455 10.6039 5.93234 10.896C5.79305 11.1193 5.75 11.3855 5.75 11.6487V14.25C5.75 14.5261 5.52614 14.75 5.25 14.75H3.12C2.08723 14.75 1.25 13.9128 1.25 12.88Z"
|
|
|
|
|
stroke="#292929" stroke-width="1.5" stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round" />
|
|
|
|
|
</svg>
|
|
|
|
|
</span>
|
2023-09-06 08:15:31 +00:00
|
|
|
{{'Главная'|_}}
|
2022-09-13 14:01:10 +00:00
|
|
|
</a>
|
|
|
|
|
<h4 class="crumb_title">
|
2023-09-06 08:15:31 +00:00
|
|
|
{{'Профиль'|_}}
|
2022-09-13 14:01:10 +00:00
|
|
|
</h4>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
<!-- Breadcrumb end =================== -->
|
|
|
|
|
|
|
|
|
|
<!-- Bills ============================= -->
|
|
|
|
|
<section class="bill">
|
|
|
|
|
<div class="auto_container">
|
|
|
|
|
<div class="bill_wrap">
|
|
|
|
|
<div class="bill_box">
|
|
|
|
|
<div class="bill_aside wow fadeInLeft" data-wow-duration=".3s" data-wow-delay=".1s">
|
|
|
|
|
<h4 class="bill_aside-title tabBtn active" data-tab="#bill-1">
|
2023-09-06 08:15:31 +00:00
|
|
|
{{'Счета'|_}}
|
2022-09-13 14:01:10 +00:00
|
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<h4 class="bill_aside-title tabBtn" data-tab="#bill-2">
|
2023-09-06 08:15:31 +00:00
|
|
|
{{'Контактная информация'|_}}
|
2022-09-13 14:01:10 +00:00
|
|
|
</h4>
|
2024-03-13 12:32:27 +00:00
|
|
|
|
|
|
|
|
<h4 class="bill_aside-title tabBtn" data-tab="#bill-3">
|
|
|
|
|
{{'notification'|_}}
|
|
|
|
|
</h4>
|
|
|
|
|
|
2023-08-11 11:34:25 +00:00
|
|
|
<a href="#" data-request="onLogout" data-request-data="redirect: '/'"
|
|
|
|
|
class="bill_aside-title">
|
2023-09-06 08:15:31 +00:00
|
|
|
{{'Выход'|_}}
|
2023-08-11 11:34:25 +00:00
|
|
|
</a>
|
2022-09-13 14:01:10 +00:00
|
|
|
</div>
|
2024-03-13 12:32:27 +00:00
|
|
|
|
2022-09-13 14:01:10 +00:00
|
|
|
<div class="bill_info tabItem active" id="bill-1">
|
2022-09-15 19:49:54 +00:00
|
|
|
{% for detail in user.shop.reports %}
|
2022-09-13 14:01:10 +00:00
|
|
|
<div class="bill_item downloaded wow fadeInUp" data-wow-duration=".3s" data-wow-delay=".1s">
|
|
|
|
|
<div>
|
|
|
|
|
<p>
|
2022-09-15 19:49:54 +00:00
|
|
|
{{detail.report.date}}
|
2022-09-13 14:01:10 +00:00
|
|
|
</p>
|
|
|
|
|
<p>
|
2022-09-15 19:49:54 +00:00
|
|
|
{{detail.report.name}}
|
2022-09-13 14:01:10 +00:00
|
|
|
</p>
|
|
|
|
|
</div>
|
2023-08-11 11:00:54 +00:00
|
|
|
<a href="{{ url('/storage/app') }}{{detail.file}}" download class="bill_item-link">
|
2022-09-13 14:01:10 +00:00
|
|
|
<span>
|
|
|
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
|
|
|
<path
|
|
|
|
|
d="M19 18H5C4.44772 18 4 18.4477 4 19C4 19.5523 4.44772 20 5 20H19C19.5523 20 20 19.5523 20 19C20 18.4477 19.5523 18 19 18Z"
|
|
|
|
|
fill="#292929" />
|
|
|
|
|
<path
|
|
|
|
|
d="M4 17V19C4 19.5523 4.44772 20 5 20C5.55228 20 6 19.5523 6 19V17C6 16.4477 5.55228 16 5 16C4.44772 16 4 16.4477 4 17Z"
|
|
|
|
|
fill="#292929" />
|
|
|
|
|
<path
|
|
|
|
|
d="M18 17V19C18 19.5523 18.4477 20 19 20C19.5523 20 20 19.5523 20 19V17C20 16.4477 19.5523 16 19 16C18.4477 16 18 16.4477 18 17Z"
|
|
|
|
|
fill="#292929" />
|
|
|
|
|
<path
|
|
|
|
|
d="M11.9995 15C11.7921 15.0016 11.5895 14.9387 11.4195 14.82L7.41946 12C7.20387 11.8471 7.05761 11.615 7.01263 11.3545C6.96766 11.0941 7.02764 10.8264 7.17946 10.61C7.25525 10.5019 7.35171 10.4098 7.46327 10.3391C7.57483 10.2684 7.69928 10.2206 7.82945 10.1982C7.95961 10.1759 8.09291 10.1796 8.22164 10.2091C8.35037 10.2386 8.47198 10.2933 8.57946 10.37L11.9995 12.76L15.3995 10.2C15.6116 10.0409 15.8783 9.97255 16.1409 10.0101C16.4034 10.0476 16.6403 10.1878 16.7995 10.4C16.9586 10.6122 17.0269 10.8789 16.9894 11.1414C16.9519 11.404 16.8116 11.6409 16.5995 11.8L12.5995 14.8C12.4264 14.9298 12.2158 15 11.9995 15Z"
|
|
|
|
|
fill="#292929" />
|
|
|
|
|
<path
|
|
|
|
|
d="M12 13C11.7348 13 11.4804 12.8946 11.2929 12.7071C11.1054 12.5196 11 12.2652 11 12V4C11 3.73478 11.1054 3.48043 11.2929 3.29289C11.4804 3.10536 11.7348 3 12 3C12.2652 3 12.5196 3.10536 12.7071 3.29289C12.8946 3.48043 13 3.73478 13 4V12C13 12.2652 12.8946 12.5196 12.7071 12.7071C12.5196 12.8946 12.2652 13 12 13Z"
|
|
|
|
|
fill="#292929" />
|
|
|
|
|
</svg>
|
|
|
|
|
</span>
|
|
|
|
|
|
2023-09-06 08:15:31 +00:00
|
|
|
{{'Скачать PDF файл'|_}}
|
2022-09-13 14:01:10 +00:00
|
|
|
</a>
|
|
|
|
|
</div>
|
2022-09-15 19:49:54 +00:00
|
|
|
{% endfor %}
|
2022-09-13 14:01:10 +00:00
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="bill_info tabItem" id="bill-2">
|
|
|
|
|
<form action="{{route('update.shop')}}" method="POST" class="bill_form">
|
|
|
|
|
<div class="bill_input wow fadeInUp" data-wow-duration=".3s" data-wow-delay=".1s">
|
|
|
|
|
<label for="shop-name">Название магазина</label>
|
|
|
|
|
<input type="text" id="shop-name" name="name" placeholder="Dap" value={{user.shop.name}}>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="bill_input wow fadeInUp" data-wow-duration=".3s" data-wow-delay=".13s">
|
|
|
|
|
<label for="shop-floor">Этаж</label>
|
|
|
|
|
<input type="number" id="shop-floor" name="floor" placeholder="3" value={{user.shop.floor}}>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="bill_input wow fadeInUp" data-wow-duration=".3s" data-wow-delay=".17s">
|
|
|
|
|
<label for="shop-phone">Номер телефона</label>
|
|
|
|
|
<input type="number" id="shop-phone" name="phone" placeholder="61616161" value={{user.shop.phone}}>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="bill_input wow fadeInUp" data-wow-duration=".3s" data-wow-delay=".2s">
|
|
|
|
|
<label for="shop-media">Instagram</label>
|
|
|
|
|
<input type="text" id="shop-media" name="instagram_name" placeholder="@dap" value={{user.shop.instagram_name}}>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="bill_input wow fadeInUp" data-wow-duration=".3s" data-wow-delay=".23s">
|
|
|
|
|
<label for="shop-link">Ссылка на Instagram</label>
|
|
|
|
|
<input type="text" id="shop-link" name="instagram_link" placeholder="https://instagram.com/name" value={{user.shop.instagram_link}}>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="hidden" name="id" value={{user.shop.id}}>
|
|
|
|
|
<div class="bill_btn wow fadeInUp" data-wow-duration=".3s" data-wow-delay=".27s">
|
|
|
|
|
<button type="submit">
|
2023-09-06 08:15:31 +00:00
|
|
|
{{'Сохранить'|_}}
|
2022-09-13 14:01:10 +00:00
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2024-03-13 12:32:27 +00:00
|
|
|
|
|
|
|
|
<div class="bill_info tabItem" id="bill-3">
|
|
|
|
|
{% for notif in notifs %}
|
|
|
|
|
<div class="bill_item downloaded wow fadeInUp" data-wow-duration=".3s" data-wow-delay=".1s">
|
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
{{notif.created_at|date("d.m.Y")}}
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
{{notif.title}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<a href="{{notif.message|media}}" target="_blank" class="bill_item-link">
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
|
|
<svg width="28" height="38" viewBox="0 0 28 38" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M25.9857 33.6684V6.06318C25.9947 4.99455 25.5788 3.96611 24.8296 3.2041C24.0803 2.4421 23.059 2.00897 21.9904 2H6.00935C4.94072 2.00897 3.91942 2.4421 3.17016 3.2041C2.42089 3.96611 2.00504 4.99455 2.01408 6.06318V33.6684C1.91911 34.4655 2.31045 35.242 3.00763 35.6398C3.70481 36.0377 4.5724 35.9795 5.21029 35.4923L12.8013 28.9381C13.4856 28.3205 14.5261 28.3205 15.2104 28.9381L22.7894 35.4943C23.4276 35.9819 24.2958 36.0399 24.9932 35.6416C25.6906 35.2432 26.0816 34.4659 25.9857 33.6684Z" stroke="#292929" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
{{'read.more'|_}}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
</div>
|
2022-09-13 14:01:10 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
<!-- Bills end ========================= -->
|