@extends ('layouts.app') @section ('content')
@include('partials.messages')
@foreach($stocktakes as $stocktake) @if(isset($stocktake->closing))
@if(!$stocktake->approved) @if(isset($stocktake->closing) && isset($stocktake->opening)) @else
id,10), $stocktake_merge_items)) ? 'checked' : '' }} class="checkbox stocktake-merge-checkbox" name="" value="" id="checkbox_{{ $stocktake->id }}" data-stocktake="{{ Hashids::encode($stocktake->id, 10) }}">
@endif @endif
@if(!isset($stocktake->area->title) || !isset($stocktake->shelf->title)) @endif {{ isset($stocktake->area->title) ? $stocktake->area->title : 'Deleted area' }}
{{ isset($stocktake->shelf->title) ? $stocktake->shelf->title : 'Deleted shelf' }}

{{ isset($stocktake->closing->stock_taker->name) ? $stocktake->closing->stock_taker->name : '' }} {{ isset($stocktake->closing->stock_taker->surname) ? $stocktake->closing->stock_taker->surname : '' }} {{ isset($stocktake->closing->created_at) ? '| '.$stocktake->closing->created_at : '' }} @if(isset($stocktake->closing->stock_take_time->title)) | {{ ($stocktake->closing->stock_take_time->title == 'Closing') ? 'Stocktake' : 'Verification'}} @endif  

@if(isset($stocktake->opening))

{{ isset($stocktake->opening->stock_taker->name) ? $stocktake->opening->stock_taker->name : '' }} {{ isset($stocktake->opening->stock_taker->surname) ? $stocktake->opening->stock_taker->surname : '' }} {{ isset($stocktake->opening->created_at) ? '| '.$stocktake->opening->created_at : '' }} @if(isset($stocktake->opening->stock_take_time->title)) | {{ ($stocktake->opening->stock_take_time->title == 'Closing') ? 'Stocktake' : 'Verification'}} @endif   @if(isset($stocktake->modified_by)) Modified by {{ $stocktake->modified_by }} | {{ $stocktake->opening->updated_at }} @endif

@endif
View @if (in_array('stocktakes.update', $user_rights)) @if($stocktake->approved) @else @endif @endif
@endif @endforeach @if(!$stocktakes->count()) No Stock Takes @endif
{{ $stocktakes->links() }}
Showing {{ ($items > $stocktakes->total()) ? $stocktakes->total() : $items }} out of {{ $stocktakes->total() }} entries
@include('modals._deactivate') @include('modals.merge_stocktake') @stop