@extends('layouts.app') @push('css') @endpush @section('content')
@if(session('success')) {!! alert_success(session('success')) !!} @elseif(session('error')) {!! alert_error(session('error')) !!} @endif
{{ $title }}
{{ csrf_field() }}

@forelse($transfers as $transfer) @empty @endforelse
# From To Status Date Product Type Total Cost Price By Action
{{ $loop->iteration }} {{ $transfer->store_from->name }} {{ $transfer->store_to->name }} {!! $transfer->status == "COMPLETE" ? label( $transfer->status,'success') : label( $transfer->status,'primary') !!} {{ convert_date($transfer->transfer_date) }} {{ convert_date($transfer->product_type) }} {{ number_format($transfer->total_price,2) }} {{ $transfer->user->name }} @if(userCanView('stocktransfer.delete_transfer') && $transfer->status =="DRAFT") Delete @endif @if(userCanView('stocktransfer.edit') && $transfer->status =="DRAFT") Edit @endif @if(userCanView('stocktransfer.complete') && $transfer->status =="DRAFT") Complete @endif @if(userCanView('stocktransfer.show')) View @endif
@endsection @push('js') @endpush