@extends('layouts.dash')
@section('title') Salaire @stop
@section('title_card') @stop
@section('subtitle_card',"Employeur")
@section('content')
@if ($errors)
@foreach ($errors->all() as $error)
{!! $error !!}
@endforeach
@endif
{{ html()->modelForm($salaire)->open() }}
@include("recouvrement.salaires.content")
{{ html()->form()->close() }}
@if($user->hasRole('ADMINISTRATEUR') || $user->can("SAL_SUP"))
{{ html()->form('DELETE', url('/salaires/'. $salaire->id))->open() }}
{!! html()->button('Supprimer')->value('Supprimer')->type('submit')
->attributes(['onclick'=>'if(!confirm("Voulez-vous vraiment supprimer ce Salaire ?")) return false;','class' => 'btn btn-danger']) !!}
{{ html()->form()->close() }}
@endif
@stop
@section('scripts')
@include("recouvrement.salaires.scripts_salaires")
@stop