芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/resources/views/contracts/renew/renew_history.blade.php
@php $editContractPermission = user()->permission('edit_contract'); $deleteContractPermission = user()->permission('delete_contract'); @endphp @forelse ($contract->renewHistory as $history)
{{ mb_ucwords($history->renewedBy->name) }}
@lang('app.renew') @lang('app.date') - {{ $history->created_at->timezone(company()->timezone)->format(company()->date_format) }}
@if ($editContractPermission == 'all' || ($editContractPermission == 'added' && $history->added_by == user()->id))
@lang('app.edit')
@endif @if ($deleteContractPermission == 'all' || ($deleteContractPermission == 'added' && $history->added_by == user()->id))
@lang('app.delete')
@endif
@lang('app.startDate')
@lang('app.endDate')
@lang('modules.contracts.newAmount')
{{ $history->start_date->timezone(company()->timezone)->format(company()->date_format) }}
{{ $history->end_date->timezone(company()->timezone)->format(company()->date_format) }}
{{ currency_formatter($history->amount) }}
@empty
@endforelse