@extends('layout.page-layout')
@section('pageTitle',isset($pageTitle) ? $pageTitle : 'Immobilisation')

@section('content')


<div class="row mb-3 ">
    <div class="col-md-6 col-sm-12">
        <div class="title">
            <h2 class="h3 mb-0">Immobilisation</h2>
        </div>
    </div>
    <div class="col-md-6 col-sm-12 text-right">
        @livewire('list-exercice')
    </div>
</div>

@if(get_current_idWorkDay())

    <div class="row">
        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 mb-5">
            <div class="pd-20 bg-white border-radius-4 box-shadow mb-30">
            @livewire('immobilisation') 
            </div>
        </div>
    </div>

    @livewire('modal-immo') 

@else
<div class="alert alert-danger d-flex align-items-center" role="alert">
    <div>
        <i class="icon-copy bi bi-shield-fill-x"></i> Aucun taux de change renseigné !
        &nbsp;
        <a href="{{ route('administration') }}" class="alert-link">définir Taux de change</a>
    </div>
</div>

@endif

@endsection



