@if(Session::has('flash_message'))
{{ Session::get('flash_message') }}
@endif {!! Form::open(array('class' => 'form-horizontal form-label-left', 'method' => 'GEt')) !!}
{!! Form::select('week', $_weeks, $week, array('id' => 'week', 'class' => 'form-control' ,'data-placeholder' => 'SELECT Workweek')) !!}
{!! Form::select('year', $_years, $year, array('id' => 'branches', 'class' => 'form-control' ,'data-placeholder' => 'SELECT Workweek')) !!}
{!! Form::close() !!}

Week # {{$week}}

{{ date('F-d-Y', strtotime($arr['week_start'])) }} to {{ date('F-d-Y', strtotime($arr['week_end'])) }}

@foreach($data as $d) @php $_goal = 0.00; $_atv = 0.00; $_ft = 0.00; $_fpp = 0.00; $_upsell = 0.00; $_best = 0.00; $_foot = 0.00; if($d->net_amount > 0 ){ if($d->target > 0 ) { $_goal = ($d->net_amount - $d->refund_amount )/ $d->target; } $_atv = ($d->net_amount - $d->refund_amount ) / $d->total_trans; } if($d->total_trans > 0 && $d->frame_quantity > 0 ) { $_ft = $d->frame_quantity / $d->total_trans; } if($d->total_trans > 0 && $d->foot_count > 0 ){ $_foot = $d->total_trans / $d->foot_count; } if($d->frame_quantity > 0 && $d->frame_amount >0) { $_fpp = $d->frame_amount / $d->frame_quantity; } if($d->frame_quantity > 0 && $d->upsell_quantity >0) { $_upsell = $d->upsell_quantity / $d->frame_quantity; } if($d->best_seller_quantity > 0) { $_best = $d->best_seller_quantity/25; } @endphp @endforeach
Store Weekly Target Actual Sales % to Goal # of Transactions ATV Footcount Conversion Frame/Transactions Upsell% Frame Price Point 25 Best Seller Inventory Action
{{ $d->branch }} {{ number_format($d->target,2) }} {{ number_format($d->net_amount - $d->refund_amount,2) }} {{ round((float) $_goal * 100 ) }}.% {{ $d->total_trans }} {{ round((float)$_atv ) }} {{ $d->foot_count }} {{ round((float)$_foot ) }} {{ round($_ft,2) }} {{ round((float) $_upsell * 100 ) }}.% {{ round($_fpp,2) }} {{ round((float) $_best * 100 ) }}.% Store Overview
@endsection