0
0
Files
Babyclass/resources/views/account/index.blade.php
2020-08-04 10:17:22 +08:00

39 lines
1.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@extends('layouts.app')
@section('content')
<section class="padding_btm" >
<!-- 账户总额 Start -->
<div class="j_account_money" style="border-bottom: 0">
账户余额<span style="font-size: .9rem">{{ number_format(Auth::user()->account->cash, 2) }}</span>
<div class="accounts_apply_btn" data-href="{{ route('withdraw.wechat') }}" style="bottom: 1.5rem;">
提现
</div>
</div>
<!-- 账户总额 End -->
<!-- 收支记录 Start -->
<div class="accounts_detail">
账户明细
</div>
<ul class="bi-list" style="background:none">
@if($logs->count() > 0)
@foreach($logs as $log)
<li style="background-color: #fff">
<div class="record_left">
<div class="record_name text-nowrap">{{ $log->rule->title }}</div>
<div class="record_time text-nowrap">{{ $log->created_at->format('m/d H:i') }}</div>
</div>
<div class="record_num text-nowrap @if($log->variable>0) bi_in @endif ">{{ number_format($log->variable,2) }}</div><!--说明收入金额为正数添加class 'bi_in'-->
</li>
@endforeach
@else
<div class="empty" style="padding-top: 10%;">
<img src="/assets/home/img/k_null2.jpg">
<p>暂无记录</p>
</div>
@endif
</ul>
<!-- 收支记录 End -->
</section>
@endsection