@extends('layouts.master') @section('content')

Detil

{{ $wo->status }}
{{ $wo->created_at}}
@if(in_array(Auth::user()->roles->first()->name, array('Admin Logistik'))) @if($wo->total_product != $wo->total_inventory)
Total inventory tidak mencukupi untuk work order ini
Silahkan membuat PO untuk inventory
@endif @endif @foreach ($wo->product as $i => $row)
{{ strtoupper($row->product_name)}}
{{ number_format($row->qty,0,",",".") }}
{{ number_format($row->unit,0,",",".") }}
{{ number_format($row->total_unit,0,",",".") }}
@if(in_array(Auth::user()->roles->first()->name, array('Admin Logistik')))
Serial Number {{ number_format(count($row->inventory),0,",",".") }}
@if($row->inventory) @foreach ($row->inventory as $inven) @endforeach
@foreach ($row->inventory2 as $inven2) @endforeach
Product Serial Number Outer Serial Number Awal Serial Number Akhir Qty
{{ $inven2->product_flag }} {{ $inven2->serial_number_outer }} {{ $inven2->min_sn }} {{ $inven2->max_sn }} {{ number_format($inven2->qty,0,",",".") }}
Total {{ number_format($total,0,",",".") }}
@else
Belum terdapat inventory
@endif
@endif @if(in_array(Auth::user()->roles->first()->name, array('Admin eVoucher')))
@foreach ($row->chip as $key => $rc)
{{ strtoupper($rc->chip) }} - {{ strtoupper($rc->msisdn_alias) }}
@endforeach
@endif
@endforeach @if(Auth::user()->roles->first()->name == 'Admin eVoucher' && in_array($wo->raw_status, array('2', '7', '9', '10', '11')))
{{ $total }}
@endif
@if(Auth::user()->roles->first()->name == 'Admin Logistik') Kembali @elseif(Auth::user()->roles->first()->name == 'Admin eVoucher') Kembali @if( strtolower($wo->status) == "approve") Download ke Excel @endif @else Kembali @endif
@if (in_array(\App\Helpers\Helpers::to_slug(Auth::user()->roles->first()->name), array('admin_logistik')) && $wo->total_product == $wo->total_inventory) @if (\App\Helpers\Helpers::to_slug(Auth::user()->roles->first()->name) != $wo->flag && in_array($wo->raw_status, array('1', '2', '7', '9', '10', '11')) && $wo->flag != 'approved') @endif @if (in_array($wo->raw_status, array('5','13'))) Pengambilan Product @endif @endif @if (in_array(\App\Helpers\Helpers::to_slug(Auth::user()->roles->first()->name), array('admin_evoucher'))) @if (\App\Helpers\Helpers::to_slug(Auth::user()->roles->first()->name) != $wo->flag && in_array($wo->raw_status, array('1', '2', '7', '9', '10', '11')) && $wo->flag != 'approved') @endif @endif
@endsection