coinwind/storage/framework/views/5f77f4ef94d57214ead94d2136c...

13 lines
517 B
PHP

<?php if(Session::has('toastr')): ?>
<?php
$toastr = Session::pull('toastr');
$type = \Illuminate\Support\Arr::get($toastr->get('type'), 0, 'success');
$message = \Illuminate\Support\Arr::get($toastr->get('message'), 0, '');
$options = json_encode($toastr->get('options', []));
?>
<script>
$(function () {
toastr.<?php echo e($type); ?>('<?php echo $message; ?>', null, <?php echo $options; ?>);
});
</script>
<?php endif; ?>