snipe-it/resources/views/notifications.blade.php

155 lines
5.4 KiB
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
@if ($errors->any())
<div class="col-md-12">
<div class="alert alert-danger fade in">
2016-03-25 01:18:05 -07:00
<button type="button" class="close" data-dismiss="alert">&times;</button>
<i class="fas fa-exclamation-triangle faa-pulse animated"></i>
<strong>{{ trans('general.notification_error') }}</strong>
{{ trans('general.notification_error_hint') }}
2016-03-25 01:18:05 -07:00
</div>
</div>
@endif
@if ($message = Session::get('status'))
<div class="col-md-12">
<div class="alert alert-success fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<i class="fas fa-check faa-pulse animated"></i>
<strong>{{ trans('general.notification_success') }} </strong>
{{ $message }}
</div>
</div>
@endif
2016-03-25 01:18:05 -07:00
@if ($message = Session::get('success'))
<div class="col-md-12">
<div class="alert alert-success fade in">
2016-03-25 01:18:05 -07:00
<button type="button" class="close" data-dismiss="alert">&times;</button>
<i class="fas fa-check faa-pulse animated"></i>
<strong>{{ trans('general.notification_success') }} </strong>
2016-03-25 01:18:05 -07:00
{{ $message }}
</div>
</div>
@endif
@if ($assets = Session::get('assets'))
@foreach ($assets as $asset)
<div class="col-md-12">
<div class="alert alert-info fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<i class="fas fa-info-circle faa-pulse animated"></i>
<strong>{{ trans('general.asset_information') }} </strong>
<ul>
@isset ($asset->model->name)
<li><b>{{ trans('general.model_name') }} </b> {{ $asset->model->name }}</li>
@endisset
@isset ($asset->name)
<li><b>{{ trans('general.asset_name') }} </b> {{ $asset->model->name }}</li>
@endisset
<li><b>{{ trans('general.asset_tag') }}</b> {{ $asset->asset_tag }}</li>
2022-08-31 04:07:05 -07:00
@isset ($asset->notes)
<li><b>{{ trans('general.notes') }}</b> {{ $asset->notes }}</li>
@endisset
</ul>
</div>
</div>
@endforeach
@endif
@if ($consumables = Session::get('consumables'))
@foreach ($consumables as $consumable)
<div class="col-md-12">
<div class="alert alert-info fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<i class="fas fa-info-circle faa-pulse animated"></i>
<strong>{{ trans('general.consumable_information') }} </strong>
<ul><li><b>{{ trans('general.consumable_name') }}</b> {{ $consumable->name }}</li></ul>
</div>
</div>
@endforeach
@endif
@if ($accessories = Session::get('accessories'))
@foreach ($accessories as $accessory)
<div class="col-md-12">
<div class="alert alert-info fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<i class="fas fa-info-circle faa-pulse animated"></i>
<strong>{{ trans('general.accessory_information') }} </strong>
<ul><li><b>{{ trans('general.accessory_name') }}</b> {{ $accessory->name }}</li></ul>
</div>
</div>
@endforeach
@endif
2016-03-25 01:18:05 -07:00
@if ($message = Session::get('error'))
<div class="col-md-12">
<div class="alert alert alert-danger fade in">
2016-03-25 01:18:05 -07:00
<button type="button" class="close" data-dismiss="alert">&times;</button>
<i class="fas fa-exclamation-triangle faa-pulse animated"></i>
<strong>{{ trans('general.error') }} </strong>
2016-03-25 01:18:05 -07:00
{{ $message }}
</div>
</div>
@endif
2018-11-13 09:33:32 -08:00
@if ($messages = Session::get('error_messages'))
@foreach ($messages as $message)
<div class="col-md-12">
<div class="alert alert alert-danger fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<i class="fas fa-exclamation-triangle faa-pulse animated"></i>
<strong>{{ trans('general.notification_error') }} </strong>
2018-11-13 09:33:32 -08:00
{{ $message }}
</div>
</div>
@endforeach
@endif
2023-05-03 12:49:31 -07:00
@if ($messages = Session::get('bulk_errors'))
<div class="col-md-12">
<div class="alert alert alert-danger fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<i class="fas fa-exclamation-triangle faa-pulse animated"></i>
<strong>{{ trans('general.notification_error') }} </strong>
The following fields had validation errors and were not edited:
@foreach($messages as $message => $value)
<br> {{ $value. }}
@endforeach
</div>
</div>
@endif
2016-03-25 01:18:05 -07:00
@if ($message = Session::get('warning'))
<div class="col-md-12">
<div class="alert alert-warning fade in">
2016-03-25 01:18:05 -07:00
<button type="button" class="close" data-dismiss="alert">&times;</button>
<i class="fas fa-exclamation-triangle faa-pulse animated"></i>
<strong>{{ trans('general.notification_warning') }} </strong>
2016-03-25 01:18:05 -07:00
{{ $message }}
</div>
</div>
@endif
2016-03-25 01:18:05 -07:00
@if ($message = Session::get('info'))
<div class="col-md-12">
<div class="alert alert-info fade in">
2016-03-25 01:18:05 -07:00
<button type="button" class="close" data-dismiss="alert">&times;</button>
<i class="fas fa-info-circle faa-pulse animated"></i>
<strong>{{ trans('general.notification_info') }} </strong>
2016-03-25 01:18:05 -07:00
{{ $message }}
</div>
</div>
@endif