@extends('layouts.admin.main') @section('content')
@foreach ($schedules as $schedule)
Réservation de matériel du {{$schedule->date}}
""]; $n1_p1_items = array_diff(explode("-",$schedule->n1_p1_item),$remove); $n1_p2_items = array_diff(explode("-",$schedule->n1_p2_item),$remove); $n2_p1_items = array_diff(explode("-",$schedule->n2_p1_item),$remove); $n2_p2_items = array_diff(explode("-",$schedule->n2_p2_item),$remove); $n3_p1_items = array_diff(explode("-",$schedule->n3_p1_item),$remove); $n3_p2_items = array_diff(explode("-",$schedule->n3_p2_item),$remove); ?>
Niveau 1er Période 2e Période
1
{{ \App\User::find($schedule->data['n1_p1_instructor'])->fullname()}} {{ $schedule->data['n1_p1_ocom'].' - '.$schedule->data['n1_p1_name']}}

@if (!count($n1_p1_items) == 0) @foreach ($n1_p1_items as $item) @endforeach
Quantité Item Description
@php $quantity = explode(":",$item); @endphp {{$quantity[1]}} {{\App\Item::find($item)->name}} {{\App\Item::find($item)->desc}}
@else
Aucune réservation de matériel
@endif
{{ \App\User::find($schedule->data['n1_p2_instructor'])->fullname()}} {{ $schedule->data['n1_p2_ocom'].' - '.$schedule->data['n1_p2_name']}}

@if (!count($n1_p2_items) == 0) @foreach ($n1_p2_items as $item) @endforeach
Quantité Item Description
@php $quantity = explode(":",$item); @endphp {{$quantity[1]}} {{\App\Item::find($item)->name}} {{\App\Item::find($item)->desc}}
@else
Aucune réservation de matériel
@endif
2
{{ \App\User::find($schedule->data['n2_p1_instructor'])->fullname()}} {{ $schedule->data['n2_p1_ocom'].' - '.$schedule->data['n2_p1_name']}}

@if (!count($n2_p1_items) == 0) @foreach ($n2_p1_items as $item) @endforeach
Quantité Item Description
@php $quantity = explode(":",$item); @endphp {{$quantity[1]}} {{\App\Item::find($item)->name}} {{\App\Item::find($item)->desc}}
@else
Aucune réservation de matériel
@endif
{{ \App\User::find($schedule->data['n2_p2_instructor'])->fullname()}} {{ $schedule->data['n2_p2_ocom'].' - '.$schedule->data['n2_p2_name']}}

@if (!count($n2_p2_items) == 0) @foreach ($n2_p2_items as $item) @endforeach
Quantité Item Description
@php $quantity = explode(":",$item); @endphp {{$quantity[1]}} {{\App\Item::find($item)->name}} {{\App\Item::find($item)->desc}}
@else
Aucune réservation de matériel
@endif
3
{{ \App\User::find($schedule->data['n3_p1_instructor'])->fullname()}} {{ $schedule->data['n3_p1_ocom'].' - '.$schedule->data['n3_p1_name']}}

@if (!count($n3_p1_items) == 0) @foreach ($n3_p1_items as $item) @endforeach
Quantité Item Description
@php $quantity = explode(":",$item); @endphp {{$quantity[1]}} {{\App\Item::find($item)->name}} {{\App\Item::find($item)->desc}}
@else
Aucune réservation de matériel
@endif
{{ \App\User::find($schedule->data['n3_p2_instructor'])->fullname()}} {{ $schedule->data['n3_p2_ocom'].' - '.$schedule->data['n3_p2_name']}}

@if (!count($n3_p2_items) == 0) @foreach ($n3_p2_items as $item) @endforeach
Quantité Item Description
@php $quantity = explode(":",$item); @endphp {{$quantity[1]}} {{\App\Item::find($item)->name}} {{\App\Item::find($item)->desc}}
@else
Aucune réservation de matériel
@endif
@endforeach
@endsection @section('breadcrumb') @endsection @section('custom_scripts') @foreach ($schedules as $schedule) @endforeach @endsection