@extends('layout.page-layout')
@section('pageTitle',isset($pageTitle) ? $pageTitle : 'Journal OD Achat - Vente')

@section('content')

<div class="row mb-3 ">
    <div class="col-md-6 col-sm-12">
        <div class="title">
            <h2 class="h3 mb-0">Journal OD Achats - ventes</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-30">
        <div class="card-box height-100-p overflow-hidden">
            @livewire('saisie-journal-od-achat-vente')
        </div>
    </div>
</div>


@livewire('modal-tiers') 
@livewire('modal-facture-en-cours') 
<!-- livewire('modal-apercu-journal', ['journal' => 'achat'])  -->
@livewire('modal-immo')
@livewire('modal-confirm-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



