@extends('layouts.master') @section('style') @endsection @section('content') {{-- Models here Start--}} {{-- Models here End--}}

Retailer: {{$retailerData[0]->retailer_name}}

{{--{{dd($posMaterial)}}--}}
Total POSM: {{count(collect($data)->where('tag_type', 1))/*$retailerData[0]->total_pos*/}}
Segment: {{$retailerData[0]->segment}}
Channel: {{$retailerData[0]->channel}}
{{--
Added Date: {{$retailerData[0]->total_pos}}
--}}
{{--{{dd($data)}}--}}
@foreach($data as $key => $d) @if($d->tag_type==1)
Tag Date:
{{$d->psr_date}}
Activity:
{{($d->tag_type==1)? 'Tag':'Visit'}}
Shop ID:
{{$d->retailer_id}}
Segment:
{{$d->segment_name}}
SR Name:
{{$d->order_booker}}
@endif @endforeach

VISITS {{--
15
--}}

@foreach($data as $key => $d) @if($d->tag_type==2) @endif @endforeach
Tag Date Asset ID Shop ID Shop Name Segment SR Name Action
{{$d->psr_date}} {{$d->asset_id}} {{$d->retailer_id}} {{$d->retailer_name}} {{$d->segment_name}} {{$d->order_booker}} View Picture
@endsection @section('scripts') @endsection