@extends("layouts.layout_home") @section("contenu") @php if($id!=0) { $bVm_Pepi = $parcelle->bVm_Pepi; if($bVm_Pepi==0) { $NumEnrFranceAgriMer = $parcelle->NumEnrFranceAgriMer; $RefCadastrale = $parcelle->RefCadastrale; $NomParcelleCulturale = $parcelle->NomParcelleCulturale; $Commune = $parcelle->Commune; $TypeVM = $parcelle->TypeVM; $AnneePlantation = $parcelle->AnneePlantation; $IDGreffon = $parcelle->IDGreffon; $NomGreffon = $parcelle->NomGreffon; $IDPorteGreffe = $parcelle->IDPorteGreffe; $NomPorteGreffe = $parcelle->NomPorteGreffe; $Surface = $parcelle->Surface; $Surface_Ha = $parcelle->Surface_Ha; $Surface_Are = $parcelle->Surface_Are; $Surface_Ca = $parcelle->Surface_Ca; $Categorie = $parcelle->Categorie; $UnitPepi = ""; $RefLot = ""; $NatPlan = ""; $IDPaysPlants = ""; $NbPieds = ""; $TypeMEO = ""; }else { $UnitPepi = $parcelle->UnitPepi; $NumEnrFranceAgriMer = $parcelle->NumEnrFranceAgriMer; $RefCadastrale = $parcelle->RefCadastrale; $RefLot = $parcelle->RefLot; $Commune = $parcelle->Commune; $NatPlan = $parcelle->NatPlan; $IDPaysPlants = $parcelle->IDPaysPlants; $NomGreffon = $parcelle->NomGreffon; $IDPorteGreffe = $parcelle->IDPorteGreffe; $NomPorteGreffe = $parcelle->NomPorteGreffe; $NbPieds = $parcelle->NbPieds; $TypeMEO = $parcelle->TypeMEO; $Categorie = $parcelle->Categorie; } }else { $url_courante = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; if(str_contains("vignes-meres", $url_courante)) { $bVm_Pepi = 1; }else { $bVm_Pepi = 0; } if($bVm_Pepi==0) { $NumEnrFranceAgriMer = old("NumEnrFranceAgriMer"); $RefCadastrale = old("RefCadastrale"); $NomParcelleCulturale = old("NomParcelleCulturale"); $Commune = old("Commune"); $TypeVM = old("TypeVM"); $AnneePlantation = old("AnneePlantation"); $IDGreffon = old("IDGreffon"); $NomGreffon = ""; $IDPorteGreffe = old("IDPorteGreffe"); $NomPorteGreffe = ""; $Surface = old("Surface"); $Surface_Ha = old("Surface_Ha"); $Surface_Are = old("Surface_Are"); $Surface_Ca = old("Surface_Ca"); $Categorie = old("Categorie"); $UnitPepi = ""; $RefLot = ""; $NatPlan = ""; $IDPaysPlants = ""; $NbPieds = ""; $TypeMEO = ""; }else { $UnitPepi = old("UnitPepi"); $NumEnrFranceAgriMer = old("NumEnrFranceAgriMer"); $RefCadastrale = old("RefCadastrale"); $RefLot = old("RefLot"); $Commune = old("Commune"); $NatPlan = old("NatPlan"); $IDPaysPlants = old("IDPaysPlants"); $IDGreffon = old("IDGreffon"); $NomGreffon = ""; $IDPorteGreffe = old("IDPorteGreffe"); $NomPorteGreffe = ""; $NbPieds = old("NbPieds"); $TypeMEO = old("TypeMEO"); $Categorie = old("Categorie"); } } if($bVm_Pepi==0) { $lienPepi = "vignes-meres"; }else { $lienPepi = "pepinieres"; } @endphp

{{ $titre }}

@if ($errors->any())
@endif
@csrf @if($bVmPepi=="vignes-meres")
@else
@endif
Revenir à la gestion des parcelles
@endsection