@extends('emails.layouts.app')
@section('content')
Hospitals with low amount of assets:
@forelse($dangerStock as $hospital)
@if(count($hospital->invoices) > 0)
{{ $hospital->name }}
@foreach ($hospital->invoices as $invoice)
- {{ $invoice->asset->name . ': ' . $invoice->current_invoice }} left
@endforeach
@endif
@empty
There are no danger in invoice yet.
@endforelse
Changes in the amounts for last 24 hours:
@if(count($transactions) > 0)
Hospital |
Asset |
Items of transactions |
Items left |
@foreach($transactions as $transaction)
@if($loop->index == 10)
@break;
@endif
{{ $transaction->team->name }} |
{{ $transaction->asset->name }} |
{{ $transaction->sum }} |
{{ $transaction->current_invoice }} |
@endforeach
@if(count($transactions) > 10)
Log in to view more transactions
@endif
@else
No transactions were made during last 24 hours.
@endif
@endsection