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

Submission Detail

Status:{{$sub->getStatusName()}}

{{ Form::open(array('url' => '/backend/submission', 'method' => 'POST')) }} {{ Form::hidden('sub_id', $sub->id) }} {{ Form::hidden('sub_email', $sub->email) }} {{ Form::hidden('sub_name', $sub->name) }} @if($sub->status == 0)

Action:

Reject
{{Form::submit('Verify', array('name' => 'verified'))}}
Alasan: {{Form::submit('Send', array('name' => 'rejected'))}}
@elseif($sub->status == 1)

Action:

{{Form::submit('Pending', array('name' => 'pending'))}}
Sent
{{Form::text('expedition', null, array('class' => 'form-control col-10 col-lg-8', 'placeholder'=>'Masukkan Nama Ekspedisi'))}}
{{Form::text('resi', null, array('class' => 'form-control col-10 col-lg-8', 'placeholder'=>'Masukkan No. Resi'))}} {{Form::submit('Submit', array('name' => 'sent', 'class' =>' col-10 col-lg-4 mt-2 mt-lg-0'))}}
@elseif ($sub->status == 3)

Action:

{{Form::text('expedition', null, array('class' => 'form-control col-10 col-lg-8', 'placeholder'=>'Masukkan Nama Ekspedisi'))}}
{{Form::text('resi', null, array('class' => 'form-control col-8', 'placeholder'=>'Masukkan No. Resi'))}} {{Form::submit('Submit', array('name' => 'sent','class'=>'col-10 col-lg-4 mt-2 mt-lg-0'))}}
@else

No Action Required

@endif {{ Form::close() }}

@if(Session::has('message'))

{{ Session::get('message') }}

@endif
Promo Name
{{$sub->gift->promo->name}}
Name
{{$sub->name}}
Email
{{$sub->email}}
Phone
{{$sub->phone}}
Address
{{$sub->address}}
ID No
{{$sub->no_ktp}}
Product
{{$sub->gift->product_type->name}} - {{$sub->gift->product}}
Serial Number
{{$sub->no_warranty}}
Gift
{{$sub->gift->gift}}
Nama Ekspedisi
{{$sub->expedition}}
No. Resi
{{$sub->resi}}
ID Photo
Warranty Card Photo
Invoice Photo
History
@foreach($sub->logs as $log)
{{$log->action}} at {{date('H:i d-M-Y', strtotime($log->created_at))}}
@endforeach
@endsection